Welcome to the Guess-the-Number game written in Rust! Test your luck and see if you can guess the secret number.
-
Clone this repository to your local machine:
git clone https://github.com/alvaropsouza/rust-number-guesser.git
-
Navigate to the project directory:
cd guess-the-number -
Build and run the game:
cargo build cargo run
-
Follow the prompts to input your guess and try to discover the secret number!
Make sure you have Rust installed on your machine. If not, you can download and install it from https://www.rust-lang.org/tools/install.
- The game will generate a random number between 1 and 100.
- You'll be prompted to input your guess.
- If your guess is too small, the program will let you know.
- If your guess is too big, the program will inform you as well.
- If your guess is correct, congratulations, you win!
The program is designed to handle input errors gracefully. If you accidentally type a non-numeric value, the program will prompt you to enter a valid number.
Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and improvements are highly appreciated!
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy the game and happy coding! 🚀