Skip to content

Sudoku desktop player that includes functionality to play, use hints, and undo/redo moves for pre-uploaded and custom Sudoku boards at varying levels of difficulty. Designed for accessibility, you can play with either keyboard or mouse and adjust UI in preferences.

Notifications You must be signed in to change notification settings

annashiheart/sudoku-tp

Repository files navigation

Sudoku

15-112 Term Project

What is this?

Play Sudoku from your convenience of your personal laptop – anytime, anywhere!

You can solve puzzles ranging in difficulty (easy, medium, hard, evil). If you run out, you can upload your own puzzle in .txt format to the tp-starter-files folder or even create a custom board – the app will generate a solution for you!

The game can generate hints for you if you get stuck, and it can help show which values in a cell are legal and make your own notes to add or ban legals as you so wish.

By default, the game will alert you with red font (this can be changed in preferences!) if you input the incorrect value in the board or attempt to ban the cell's correct value from the cell's legals. In contest mode, however, making such mistakes will cause the game to end!

How to Play!

You can play by running the main.py file.

You can see a list of the shortcut commands if you press the guide button with your mouse or the g button on your keyboard.

Citations

Board drawing functions adapted from exercises in Animations With 2D Lists (5.3).

Backtracking code (solveSudoku) adapted from solveMiniSudoku (8.11) and isLegalSudoku (4.5).

Code for readFile, writeFile, random.choice, app.getTextInput functions adapted from Term Project Guide.

Preloaded Sudoku files from Term Project Guide.

Term Project Guide: https://www.cs.cmu.edu/~112-3/notes/term-project.html

About

Sudoku desktop player that includes functionality to play, use hints, and undo/redo moves for pre-uploaded and custom Sudoku boards at varying levels of difficulty. Designed for accessibility, you can play with either keyboard or mouse and adjust UI in preferences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages