First Rust project!
Find a file
2025-11-24 01:16:44 +03:00
src Adding infinity game! 2025-11-24 01:16:44 +03:00
.gitignore Creating project (test) 2025-11-23 22:15:46 +03:00
Cargo.lock Ready! 2025-11-24 00:41:54 +03:00
Cargo.toml Ready! 2025-11-24 00:41:54 +03:00
README.md Add README 2025-11-23 21:49:27 +00:00

Guess the Number (Rust)

Simple number guessing game. Enter a number, and the program tells you if its smaller or larger than the target.


Building

Make sure Rust and Cargo are installed.

# Run directly
cargo run

# Build release binary
cargo build --release

Binary location:

  • Linux / macOS: target/release/guess_the_number

  • Windows: target\release\guess_the_number.exe

Run the binary to play:

./target/release/guess_the_number  # Linux/macOS
target\release\guess_the_number.exe  # Windows