Skip to main content

Tools for generating solutions and starting grids for Sudoku.

Project description

sudokulib is a collection of tools that are useful for generating solutions to Sudoku puzzles. It uses a recursive backtracking algorithm (originally written by Jeremy Brown, Cel DeşŸtept), and is capable of generating a 3x3 Sudoku in ~0.015 seconds. It can also generate 4x4 Sudokus in ~0.100 seconds (sometimes longer).

Some 5x5 grids have been generated in a matter of seconds using this library, but I’ve also seen the program run for hours without successfully generating a 5x5. Anything beyond 5x5 always seems to take a long time.

The library also provides utilities for generating starting grids, so you can play Sudoku instead of just generating solutions. There are several difficulty levels to choose from.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sudokulib-0.5a.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file sudokulib-0.5a.tar.gz.

File metadata

  • Download URL: sudokulib-0.5a.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sudokulib-0.5a.tar.gz
Algorithm Hash digest
SHA256 444949fef298c20b42f6b0de1b88afee5d388bac232385a6b8ff93eff75463d2
MD5 8e6eb190118622395805c14bf840cfcc
BLAKE2b-256 037026eca3b793d7704025a6202c72e33a9f811c5b3551ee3bea32e2dd34e07b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page