コード例 #1
0
ファイル: StrikeRule.cs プロジェクト: skeiya/Bowling
 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();
 }