public static bool IsStrike(Roll roll) { return roll.GetPin() == PinNumberRule.GetMax(); }
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); }
public static bool IsSpare(Roll roll1, Roll roll2) { return roll1.GetPin() + roll2.GetPin() == PinNumberRule.GetMax(); }