https://github.com/0xataru/guessing_game
Simple command-line game written in Rust
https://github.com/0xataru/guessing_game
rust
Last synced: 5 months ago
JSON representation
Simple command-line game written in Rust
- Host: GitHub
- URL: https://github.com/0xataru/guessing_game
- Owner: 0xataru
- Created: 2024-04-12T18:48:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T10:56:10.000Z (over 1 year ago)
- Last Synced: 2025-01-10T13:28:34.653Z (6 months ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guess The Number
This is a simple command-line game written in Rust. The game generates a random number between 1 and 100, and your task is to guess it!
## How to Play
Run the program.
You will be prompted to input your guess.
If your guess is too low, the program will output "Too small!". If your guess is too high, it will output "Too big!".
Keep guessing until you find the correct number. When you guess correctly, the program will output "You win!".
## Requirements
- Rust programming language
## How to Run
1. Clone this repository.
2. Navigate to the project directory.
3. Run cargo run to start the game.