mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 23:00:43 -08:00
24 lines
492 B
C#
24 lines
492 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bowling
|
|
{
|
|
public class FrameResult
|
|
{
|
|
public enum Points { None, Error, Spare, Strike };
|
|
|
|
public int PinsBall1 { get; set; }
|
|
public int PinsBall2 { get; set; }
|
|
public Points Score { get; set; }
|
|
|
|
public void Reset()
|
|
{
|
|
PinsBall1 = PinsBall2 = 0;
|
|
Score = Points.None;
|
|
}
|
|
}
|
|
}
|