This is a simple guessing game written in Rust. The game randomly generates a number between 1 and 100, and the player has to guess the number.
- Clone the Repository:
git clone https://github.com/Antismart/guessing_game.git
- Navigate to the project Directory:
cd guessing_game
- Run the Game: Execute
cargo run
in your terminal. - Follow the Prompts: Once the game starts, enter your guess when prompted.
- Winning: Keep guessing until you correctly guess the number! 🎉
The game will prompt you to enter your guess. Type in a number between 1 and 100 and press Enter. The game will provide feedback on whether your guess is too high or too low. Continue guessing until you find the correct number.
- Random number generation for each game session.
- User input handling and validation.
- Feedback on whether the guess is too high or too low.
- Modularized code for readability and maintainability.
main.rs
: Contains the main game logic, including the random number generation and user interaction.
- Rust (stable version recommended)
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request with your changes. Contributions are welcomed!
This project is licensed under the MIT License - see the LICENSE file for details.