Skip to content

Jtachan/PyQt-Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PyQt-Sudoku

This repo is a small project to display a Sudoku board created only with PyQt6 elements.

๐Ÿ Python Setup

Requirements

  • Python 3.8 or higher

Installation

There is two possible installations:

  1. Install via pip (recommended)

For this method make use of 'pip' and 'git':

pip install git+https://github.com/Jtachan/PyQt-Sudoku.git
  1. Install locally

First, clone the repo at your desired location:

git clone https://github.com/Jtachan/PyQt-Sudoku.git

Then, prepare your environment and install locally:

pip install .

๐Ÿƒ Usage

Once the repo is installed, run the following command at the terminal:

QSudokuApp

Buttons

  1. New game

To start, click the 'New game' button. A new sudoku puzzle is then created based on the chosen difficulty. There are three difficulty settings: Easy, Medium and Hard.

Note: All generated puzzles have one single solution.

  1. Hints

The 'Hint' button will give you some help when required. You can expect two possible outcome when the button is pressed:

  • A random cell will be filled with the correct number, represented in green.
  • One of your numbers is colored red, only if it is incorrect.
  1. Check numbers

When the 'check numbers' is pressed, all written numbers are compared against the solution. Each incorrect number is printed red, and each correct number is printed green.

Exit the game

To close the game, press the key 'ESC' or clock on the 'X' at the top right of the window.

About

A sudoku app created with PyQt6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages