GithubHelp home page GithubHelp logo

lengvietcuong / pydoku Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.36 MB

A Pygame implementation of Sudoku that can generate random boards for you to play and solve existing ones.

Python 100.00%
backtracking-algorithm pygame pythongui pythonguigame sudoku-game sudoku-generator sudoku-puzzle sudoku-solver sokudo

pydoku's Introduction

Pydoku - Python Sudoku GUI

A Pygame implementation of Sudoku that can generate random boards for you to play and solve existing ones.

Installation

Clone the repository:

git clone https://github.com/lengvietcuong/pydoku.git

Install requirements using

pip install -r requirements.txt

Usage

Run main.py.

Use the arrow keys ( ) or your mouse to move to the desired square.

Press the key from 1 to 9 corresponding to the number you want to put.

Press Delete/Backspace to remove a number.

To play on random boards, choose Easy, Medium, or Hard. (guaranteed to be valid with a unique solution)

play-demo

To solve an existing board, choose Custom.

If your custom board has multiple solutions, the number of solutions will be displayed and you can use the left and right arrow keys ( ) to cycle between them.

To reveal the solution instantly, press Show Solution.

To visualize the backtracking algorithm used, press Solve Step-by-step.

solve-step-by-step-demo

pydoku's People

Contributors

lengvietcuong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.