示例#1
0
 public static bool IsStrike(Roll roll)
 {
     return roll.GetPin() == PinNumberRule.GetMax();
 }
示例#2
0
文件: Frame.cs 项目: skeiya/Bowling
 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);
 }
示例#3
0
 public static bool IsSpare(Roll roll1, Roll roll2)
 {
     return roll1.GetPin() + roll2.GetPin() == PinNumberRule.GetMax();
 }