Skip to content

Antismart/guessing_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Guessing Game 🎲

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.

Instruction on Getting started 📝

  1. Clone the Repository: git clone https://github.com/Antismart/guessing_game.git
  2. Navigate to the project Directory: cd guessing_game
  3. Run the Game: Execute cargo run in your terminal.
  4. Follow the Prompts: Once the game starts, enter your guess when prompted.
  5. Winning: Keep guessing until you correctly guess the number! 🎉

How to Play 🕹️

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.

Features ✨

  • 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.

Code Structure 🧱

  • main.rs: Contains the main game logic, including the random number generation and user interaction.

Requirements 🛠️

  • Rust (stable version recommended)

Contributing 🤝

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!

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages