File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,9 @@ impl BowlingGame {
103
103
let next_next_frame = self . frames . get ( frame_index+2 ) ;
104
104
if next_next_frame. is_some ( ) {
105
105
return ( Some ( next_frame. unwrap ( ) . roll1 ) , Some ( next_next_frame. unwrap ( ) . roll1 ) )
106
+ } else {
107
+ return ( Some ( next_frame. unwrap ( ) . roll1 ) , self . fill_ball1 )
106
108
}
107
- return ( Some ( next_frame. unwrap ( ) . roll1 ) , Some ( 0 ) )
108
109
}
109
110
return ( Some ( next_frame. unwrap ( ) . roll1 ) , Some ( next_frame. unwrap ( ) . roll2 ) )
110
111
}
Original file line number Diff line number Diff line change @@ -246,7 +246,6 @@ fn a_strike_with_the_one_roll_bonus_after_a_spare_in_the_last_frame_does_not_get
246
246
}
247
247
248
248
#[ test]
249
- #[ ignore]
250
249
fn all_strikes_is_a_perfect_score_of_300 ( ) {
251
250
let mut game = BowlingGame :: new ( ) ;
252
251
You can’t perform that action at this time.
0 commit comments