An open API service indexing awesome lists of open source software.

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.

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.