Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fahimfba/javafx-guessing-number-game
GUI based Guessing Number Game (Using JavaFX)
https://github.com/fahimfba/javafx-guessing-number-game
guess-the-number guess-the-word guessing guessing-game guessing-number-game guessmynumber java java-8 java-app javafx javafx-application javafx-components javafx-desktop-apps javafx-games javafx-gui javafx-project
Last synced: about 1 month ago
JSON representation
GUI based Guessing Number Game (Using JavaFX)
- Host: GitHub
- URL: https://github.com/fahimfba/javafx-guessing-number-game
- Owner: FahimFBA
- License: gpl-3.0
- Created: 2023-03-25T08:39:30.000Z (almost 2 years ago)
- Default Branch: production
- Last Pushed: 2023-05-04T04:30:53.000Z (over 1 year ago)
- Last Synced: 2024-10-12T18:41:00.949Z (3 months ago)
- Topics: guess-the-number, guess-the-word, guessing, guessing-game, guessing-number-game, guessmynumber, java, java-8, java-app, javafx, javafx-application, javafx-components, javafx-desktop-apps, javafx-games, javafx-gui, javafx-project
- Language: Java
- Homepage:
- Size: 35.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Number Guessing Game
This is a simple number guessing game. The computer will pick a random number between 1 and 4.
The player will then try to guess the number.
After each guess, the computer will determine if the guess is right or wrong.
The player wins if they can guess the number within 2 attempts, and if the user fails to do so within the given 2 attempts,
then the user loses. If the user submits their name, then the program also shows the user's name in the output screen.**The updated and the default branch is the `production` branch.**
## Some screenshots
![Main Screen](image/1.png)
![User Screen](image/2.png)
![Verdict Screen Win](image/3.png)
![Verdict Screen Lose](image/4.png)
## How to run
1. Clone the repository
2. You can simply run the game by launching the `jar` file. You can find the `jar` file in the `javafx-guessing-number-game\javafx-guessing-number-game\out\artifacts\GuessingNumberGame_jar` directory.
3. If you want to see the code and run it, you can open the project in IntelliJ IDEA. You can find the project in the `javafx-guessing-number-game\javafx-guessing-number-game` directory.
4. This contains three java classes. The `Main` class is only for building the artifact.
5. The main class is the `MainGameScreen` class. That has also been added to the `pom.xml` file.
6. THe secondary class is the `VerdictScreen` class which contains the output result screen.## How to play
* Simply download the [jar](out/artifacts/GuessingNumberGame_jar/GuessingNumberGame.jar) file and run it.