Skip to content

Commit

Permalink
new bounds on random numbers (1-999)
Browse files Browse the repository at this point in the history
  • Loading branch information
SleekPanther committed Aug 8, 2016
1 parent 64f96d9 commit f75ad00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EvenOdd.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class EvenOdd extends Application {

private int randomNumber = (int)(Math.random()*10); //initialize just in case, but its value should be set in displayNewNumber @ the start of a game
private Random generator = new Random();
private final int RANDOM_LOWER_BOUND = 0;
private final int RANDOM_UPPER_BOUND = 201; //this must be 1 larger than the actual desired max value
private final int RANDOM_LOWER_BOUND = 1;
private final int RANDOM_UPPER_BOUND = 1000; //this must be 1 larger than the actual desired max value
private String currentUserGuess; //need to initialize? or would that cause problems if they didn't press any keys...

private String gameMode = "waiting"; //"waiting" = start screen, "running"=currently being played & new number show up, "over"=switch scene & display score
Expand Down

0 comments on commit f75ad00

Please sign in to comment.