A simple console game written in Rust where the computer selects a random number between 1 and 100. The player tries to guess the number and receives hints indicating whether the target number is higher or lower. The number of attempts is tracked, and the game can be replayed after each round.
- Random number between 1 and 100
- Hints (“higher” / “lower”)
- Tracks number of attempts
- Input validation
- Replay functionality
git clone https://github.com/R-100/Rust-Guess-The-Number.git
cd <your-project-folder>
cargo run
- Start the program
- Type yes to begin
- Guess the number (between 1 and 100)
- Follow the hints
- Try to guess the number in as few attempts as possible
- Replay with yes or exit with no
src/
├── main.rs
Cargo.toml
Cargo.lock
README.md