A basic sudoku game, the game is interactive even though I couldn’t create a start menu due to memory limitations.
It creates randomly a sudoku grid every restart.
You can change the difficulty by changing the number of prefilled squares.
The program will tell you if the position is legal, illegal or a solution.
Colors are also customizable, from line 60 to 67 changing the 3 values in parenthesis to some RGB values will change the colors of the things stated above. For example changing (50,50,50) under “# background color” to (0,0,0) will change the color of the background (dark grey to black in this example).
How to play:
Enter a number in the console at the beginning to set the amount of prefilled squares.
Arrows to move the cursor.
0 to empty square.
1-9 to fill a square with a number.
Exe to show a solution, it will also stop the program.