Kaynağa Gözat

Merge branch 'master' of https://github.com/TimoleonLatinopoulos/java-1

TimoleonLatinopoulos 8 yıl önce
ebeveyn
işleme
30a48f25c3

+ 1
- 1
exercises/bowling/.meta/src/reference/java/BowlingGame.java Dosyayı Görüntüle

27
                 int strikeBonus = strikeBonus(frameIndex);
27
                 int strikeBonus = strikeBonus(frameIndex);
28
                 if (strikeBonus > MAXIMUM_FRAME_SCORE && !isStrike(frameIndex + 1) || spareBonus(frameIndex) > 10) {
28
                 if (strikeBonus > MAXIMUM_FRAME_SCORE && !isStrike(frameIndex + 1) || spareBonus(frameIndex) > 10) {
29
                     throw new IllegalStateException("Pin count exceeds pins on the lane");
29
                     throw new IllegalStateException("Pin count exceeds pins on the lane");
30
-                }                    
30
+                }       
31
                 
31
                 
32
                 score += 10 + strikeBonus;
32
                 score += 10 + strikeBonus;
33
                 frameIndex += i == NUMBER_OF_FRAMES ? 3 : 1;
33
                 frameIndex += i == NUMBER_OF_FRAMES ? 3 : 1;