A command-line game where the player has to guess a randomly generated number in a given range with limited tries.
- Start a new game on the currently set difficulty level (default 'easy').
- A higher difficulty increases the range that the generated number falls into, while you only get a slight increase to your number of guesses.
- View various statistics regarding your game history such as number of wins and losses, guesses, etc.
- Choose your own range for the generated number and get visual feedback for how the computer plays.
- Save your statistics before quitting so that you can load them in the next time the program is started.
- Saves are made automatically after every game played, so manually saving is not entirely necessary.
- Manually saving before loading your file on startup can be a way to reset your progress, should you choose to do so.
- You will need at least Python 3.7 to run this program.
- If you want to create and / or run tests, you will also need the pytest module.
- You can install it via command-line with
pip3 install -U pytest
- You can install it via command-line with
- Download the game.py file onto your machine.
- cd into the directory where the file was downloaded.
- Run the command
python3 game.py