Skip to content

Commit 3c5c0f4

Browse files
committed
change finalRound to FINAL_ROUND
1 parent faa6183 commit 3c5c0f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/hexlet/code/games/Engine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class Engine {
77
private static String userName;
88
private static boolean defeated = false;
99
private static int currentRound = 1;
10-
private static final int finalRound = 3;
10+
private static final int FINAL_ROUND = 3;
1111
private static Random randomizer = new Random();
1212

1313
public static void greet(Scanner scanner) {
@@ -18,7 +18,7 @@ public static void greet(Scanner scanner) {
1818
}
1919

2020
public static boolean isContinuing() {
21-
return currentRound <= finalRound && !defeated;
21+
return currentRound <= FINAL_ROUND && !defeated;
2222
}
2323

2424
public static int getRandomNumber(int bound) {

0 commit comments

Comments
 (0)