Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dheeraj8601/numberguessinggame
Experience the thrill of the Number Guessing Game in Java! Use Swing for a sleek interface, guess a random number between 1 and 100, and enjoy features like limited attempts. Developed in Visual Studio Code, it's a simple and engaging game.
https://github.com/dheeraj8601/numberguessinggame
java swing
Last synced: 17 days ago
JSON representation
Experience the thrill of the Number Guessing Game in Java! Use Swing for a sleek interface, guess a random number between 1 and 100, and enjoy features like limited attempts. Developed in Visual Studio Code, it's a simple and engaging game.
- Host: GitHub
- URL: https://github.com/dheeraj8601/numberguessinggame
- Owner: Dheeraj8601
- Created: 2023-11-25T10:53:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-17T08:56:36.000Z (about 1 year ago)
- Last Synced: 2024-11-16T08:25:32.501Z (3 months ago)
- Topics: java, swing
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Number Guessing Game
## Technology Used
- Java
- Swing (GUI Library)## IDE
Visual Studio Code## Description
A simple number guessing game implemented in Java using Swing for the graphical user interface. The game prompts the user to guess a randomly generated number between 1 and 100, providing feedback on whether the guess is too high, too low, or correct. The game includes features such as a limited number of attempts and the ability to start a new game.## How to Play
1. Enter your guess in the text field.
2. Click "Submit Guess" to check your guess.
3. Receive feedback on your guess.
4. Continue guessing until you correctly identify the random number or exhaust your attempts.
5. Click "New Game" to start a fresh game.## Development
- The application is developed in Java.
- The graphical user interface (GUI) is built using Swing.
- Random numbers are generated for the guessing game.
- The game includes error handling for invalid input.
- Visual Studio Code is used as the integrated development environment (IDE) for coding.## Instructions for Running the Game
1. Make sure you have Java installed on your system.
2. Open the project in Visual Studio Code.
3. Compile and run the `NumberGuessingGame` class.
4. The game window will appear, allowing you to play the Number Guessing Game. Have fun guessing the number!