Numeron is a command-line game implemented in Rust. The game generates a random number and the player has to guess it. Original rules is from a Japanese TV show (Wikipedia(Japanese))
- The game generates a random number. You can decide the number of digits freely.
- The player guesses the number. You can get information about
hit
andblow
.hit
means the count of numbers that are in the same place as in the correct answer.blow
means the count of numbers that are in a different place from the correct answer, but the number is included in the correct answer.
- The player continues to guess until they guess the correct number.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Rust (edition 2021)
Clone the repository:
git clone https://github.com/reyalka/numeron.git
cd numeron
Build the project:
cargo build
Run the game:
cargo run
The game will generate a random number. Your task is to guess this number. After each guess, the game will give you a hint.