Skip to content

Commit 0faa027

Browse files
Removed white spaces
1 parent 9ad1615 commit 0faa027

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ int score() {
2323
if (rolls.size() <= frameIndex + 2) {
2424
throw new IllegalStateException("Score cannot be taken until the end of the game");
2525
}
26-
26+
2727
int strikeBonus = strikeBonus(frameIndex);
2828
if (strikeBonus > MAXIMUM_FRAME_SCORE && !isStrike(frameIndex + 1) || spareBonus(frameIndex) > 10) {
2929
throw new IllegalStateException("Pin count exceeds pins on the lane");
30-
}
31-
30+
}
31+
3232
score += 10 + strikeBonus;
3333
frameIndex += i == NUMBER_OF_FRAMES ? 3 : 1;
3434
} else if (isSpare(frameIndex)) {
@@ -81,4 +81,4 @@ private int spareBonus(int frameIndex) {
8181
private int frameScore(int frameIndex) {
8282
return rolls.get(frameIndex) + rolls.get(frameIndex + 1);
8383
}
84-
}
84+
}

0 commit comments

Comments
 (0)