예제 #1
0
 public static bool IsStrike(Roll roll)
 {
     return roll.GetPin() == PinNumberRule.GetMax();
 }
예제 #2
0
파일: SpareRule.cs 프로젝트: skeiya/Bowling
 public static bool IsSpare(Roll roll1, Roll roll2)
 {
     return roll1.GetPin() + roll2.GetPin() == PinNumberRule.GetMax();
 }