Skip to content

gaeldatascience/sudoku-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Sudoku Game with Pygame and Backtracking

Description

This project is a Sudoku game built with Python and Pygame. It includes a Sudoku puzzle generator, a solver based on the backtracking algorithm, and a simple graphical user interface that allows users to interactively solve the puzzle.

The project also checks whether a puzzle has a unique solution before presenting it to the user.

Features

  • Generate a complete and valid Sudoku solution
  • Remove values from the solution to create a solvable puzzle with a unique solution
  • Solve the puzzle automatically using backtracking with visual feedback
  • Allow users to input values and verify their solution
  • Options to reset the board, auto-solve, or check the current state

Technologies Used

  • Python 3
  • Pygame
  • Standard Python libraries (random, sys)

How to Run

  1. Clone the repository:
git clone https://github.com/gaeldatascience/sudoku-solver.git
cd sudoku-solver
  1. Install dependencies:
pip install pygame
  1. Run the game:
python game.py

About

Sudoku Game with Pygame and Backtracking

Topics

Resources

Stars

Watchers

Forks

Languages