コード例 #1
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);
 }
コード例 #2
0
ファイル: FrameCountRule.cs プロジェクト: skeiya/Bowling
 public static bool IsLastFrame(Frame f)
 {
     return f.GetFrameIndex() == GetCount() - 1;
 }
コード例 #3
0
ファイル: FullFrameRule.cs プロジェクト: skeiya/Bowling
 private static bool IsLastFrame(Frame f)
 {
     return f.GetFrameIndex() == FrameCountRule.GetCount() - 1;
 }