A command-line based number guessing game. Both installation and configuration are pretty straightforward
This is a small game where you have to guess a secret number within a specified range. You are also given some hints about the secret number with every wrong try (for example, if the number is higher or lower than the once currently inputed). If you lose, you are displayed the secret number. You can exit whenever you want to by typing "q"
To begin with:
- Install Rust from the Official Rust website
- Install Git from the Git website
- Open shell or command prompt and
cd
to the directory you wanna install the program - Type
git clone https://github.com/Oakchris1955/rust-guessing-game.git
andcd rust-guessing-game
- Then, all you have to do is run
compile.sh
for Linux orcompile.bat
for Windows, which will generate an executable on the main directory of the cloned repository (Note: Remove the--release
flag from thecompile.*
files to get the hinted number)
In case you wanna edit the number of max tries you can have or mess with the number range, just edit config/options.jsonc
(Note: Deleting it will just use the default options).
Only total_tries
, min_number
and max_number
fields will be read and the rest of them will be ignored.