You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
A simple number guessing game where you try to guess a randomly generated number. The game features both a user-friendly graphical interface (GUI) and a classic console mode. The GUI provides visual feedback with color-coded hints and tracks your progress in real-time.
@@ -62,7 +62,7 @@ Download the `archive.zip` from the [latest release](https://github.com/project5
62
62
63
63
#### Requirements
64
64
65
-
- Java 8 or higher (may require Java 17+ in future versions)
65
+
- Java 11 or higher
66
66
67
67
#### How to Run
68
68
@@ -86,10 +86,13 @@ The game now features both a graphical user interface (GUI) and a console mode.
86
86
- Orange text indicates your guess was too high
87
87
- Green text indicates you guessed correctly!
88
88
5. The number of guesses is displayed and updated in real-time
89
-
6. When you guess correctly, click "New Game" to play again
90
-
7. Use the menu bar for additional options:
89
+
6. When you guess correctly, you'll be prompted to enter your username
90
+
7. After entering your username, your score will be saved and the top high scores will be displayed
91
+
8. Click "New Game" to play again
92
+
9. Use the menu bar for additional options:
91
93
- File → New Game (Ctrl+N): Start a new game
92
94
- File → Exit: Close the application
95
+
- View → High Scores: View the top high scores
93
96
- Help → About: View game information
94
97
95
98
#### Console Mode
@@ -108,6 +111,18 @@ In console mode:
108
111
2. The game will tell you if your guess is too high or too low
109
112
3. Keep guessing until you find the correct number
110
113
4. The game will display how many guesses it took you
114
+
5. Enter your username when prompted to save your score
115
+
6. The top high scores will be displayed after saving your score
116
+
117
+
### High Scores
118
+
119
+
The game automatically tracks high scores (games won with the fewest guesses). High scores are stored persistently in your home directory at `~/.numberguessinggame/highscores.properties`.
120
+
121
+
- The top 10 scores are kept
122
+
- Scores are sorted by the number of guesses (fewest is best)
123
+
- Each score includes the username and number of guesses
124
+
- High scores persist across game sessions
125
+
- View high scores from the GUI menu (View → High Scores) or after completing a game
0 commit comments