https://github.com/pbergstrom90/java_guessgame
Java examproject for a course in "Object Oriented Programming". October 2023.
https://github.com/pbergstrom90/java_guessgame
exam java object-oriented-programming oop school
Last synced: 4 months ago
JSON representation
Java examproject for a course in "Object Oriented Programming". October 2023.
- Host: GitHub
- URL: https://github.com/pbergstrom90/java_guessgame
- Owner: PBergstrom90
- Created: 2023-10-03T10:51:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T07:26:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-22T07:49:44.001Z (4 months ago)
- Topics: exam, java, object-oriented-programming, oop, school
- Language: Java
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guessing Game
A simple Java console-based guessing game where the player tries to guess a random number between 1 and 100.
## Features
- Randomly generated target number.
- Player's score based on the number of attempts.
- Low score tracking.
- Menu-driven user interface.
- Top 5 low scores displayed.## Prerequisites
- Java Development Kit (JDK) installed on your system.
- A Java IDE or text editor for code editing.## Getting Started
1. Compile the Java code:
```
javac Menu.java GuessGame.java LowScore.java Main.java
```
2. Run the game:```
java Main
```
3. Follow the on-screen instructions to play the game, view the low score list, or exit the program.How to Play:
Select option 1 to start the game.
Guess the random number between 1 and 100.
Your score is based on the number of attempts.
When you guess correctly, enter your name to register your score in the low score list.Low Score List:
Select option 2 from the menu to view the low score list.
The low score list displays the top 5 players with the lowest scores.
Scores are sorted in ascending order (fewest attempts = higher score).Author:
Pontus Bergström : (https://github.com/PBergstrom90)Comments:
Comments are typed in Swedish.