bcbecker / Sudoku-Solver

Sudoku game/solver utilizing a backtracking algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sudoku-Solver

This is a GUI sudoku game/solver built using pygame, incorporating a backtracking algorithm to recursively and incrementally find the correct values for each block. The user can play the game until they are stuck, then use the power of computing to solve the puzzle.

Setup

Ensure python 3.9 is installed.

Install requirements:

pip install -r requirements.txt

Or, access virtual environment:

pip install pipenv
pipenv shell

Instructions

Click a block and type the desired number, then press ENTER to confirm the value or BACKSPACE to remove it. The value will be checked for accuracy. At any time, the user can press SPACE to solve the puzzle.

Starting the game

python main.py

About

Sudoku game/solver utilizing a backtracking algorithm


Languages

Language:Python 100.0%