- Install Python 3.10.0 or newer
- Create and open new
virtual environment - Install required modules with
pip install -r requirements.txt - Run project with
python main.py
- There are 3 possible difficulties:
- Easy
- Medium
- Hard
- Running
python main.pywill generate a Sudoku board withmediumdifficulty by default. - To change the difficulty, enter the desired difficulty after
main.py - For example:
python main.py easyorpython main.py hard
- On the left the top 15 high scores with your chosen difficulty will be shown.
- On the right the controls are shown.
- Navigating through the Sudoku grid is done using the arrow keys.
- Ending and quitting the current game is done by pressing
q. FYI: There is no confirmation question or window. - To completely reset the board to the initial state, use the
rkey. - To check if your filled out board is correct, press
c. If your solution is correct, your high score will be saved, and the game will exit. - To input numbers into the board, use the number keys
0-9. Use0to delete the currently entered number. - To increase or decrease the currently highlighted number use
+and-. - If you have to quit playing due to unforeseen circumstances, you can save the state with
s. To reload your saved game, usel. - If the current board is too hard for you, you can try to let an AI solve it for you. Use the
akey to let the AI do its thing.
- At the bottom there are several debug information which might be useful or interesting for you.
- Start the game with
python main.py - Enter your name as the instructions on the screen says. This is needed for your score to be saved and be connected to you. Press enter to save your name.
- You now have time to look at the generated sudoku board until you press any key. During that time you can make yourself familiar with the layout.
- After pressing a key the game starts and so does the timer!
- If you are done playing press
cto check if your solution is correct.
Tested with following operating systems:
- Windows 11
- Linux Debian bookworm