Example #1
0
 public static bool IsStrike(Roll roll)
 {
     return roll.GetPin() == PinNumberRule.GetMax();
 }
Example #2
0
 public static Frame Append(Frame old, Roll roll)
 {
     List<Roll> tmp = new List<Roll>(old._rolls);
     tmp.Add(roll);
     return new Frame(old.GetFrameIndex(), tmp);
 }
Example #3
0
 public static bool IsSpare(Roll roll1, Roll roll2)
 {
     return roll1.GetPin() + roll2.GetPin() == PinNumberRule.GetMax();
 }