Exemplo n.º 1
0
 private static bool Check_for_pair_in_10th_frame(Frame[] frames)
 {
     return frames.Count() == 10 &&
             frames[9].Roll2.HasValue &&
             frames[9].Score < 10;
 }
Exemplo n.º 2
0
 private static bool Check_for_single_roll_after_spare_in_10th_frame(Frame[] frames)
 {
     return frames.Count() == 11 &&
             frames[9].Roll1 != 10 &&
             frames[10].Roll1.HasValue;
 }
Exemplo n.º 3
0
 private static bool Check_for_2_more_rolls_after_strike_in_10th_frame(Frame[] frames)
 {
     return frames.Count() == 11 &&
             frames[9].Roll1 == 10 &&
             frames[10].Roll1.HasValue && frames[10].Roll2.HasValue;
 }