Skip to content

Programmation par contraintes : jeu de sudoku

License

elonmj/Solving-sudoku

Repository files navigation

Sudoku

python version

license

A simple Sudoku game written in Python using the pygame library.

Features

  • Randomly generated Sudoku boards
  • Randomly pruned cells
  • Check for valid moves
  • Check for game completion
  • Timer
  • Reset the board
  • Solve the board using Constraint Satisfaction Problem (CSP) with OR-TOOLS
  • Highlight the selected cell
  • Highlight the same numbers in the same row, column, and box

Installation

  1. Install the required dependencies:
    pip install -r requirements.txt
  2. Run the game:
    python main.py

Settings

You can change the number of randomly-pruned cells in the Sudoku board in the prune method in board.py.

About

Programmation par contraintes : jeu de sudoku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages