Skip to content

Commit 36e41a8

Browse files
Added test check
1 parent cdd18b3 commit 36e41a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎exercises/bowling/.meta/src/reference/java/BowlingGame.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int score() {
2525
}
2626

2727
int strikeBonus = strikeBonus(frameIndex);
28-
if (strikeBonus > MAXIMUM_FRAME_SCORE && !isStrike(frameIndex + 1)) {
28+
if (strikeBonus > MAXIMUM_FRAME_SCORE && !isStrike(frameIndex + 1) && spareBonus(frameIndex) > 10) {
2929
throw new IllegalStateException("Pin count exceeds pins on the lane");
3030
}
3131

0 commit comments

Comments
 (0)