Skip to main content

A simple python package that solves sudokus using genetic algorithms

Project description

Solve sudokus of any size using genetic algorithms with an easy approach

Basic usage

from genedoku.Evolution import Evolution
from genedoku.SudokuChromosome import SudokuChromosome

e = Evolution(problem, SudokuChromosome, 50, 20000)
r = e.start()

Where problem contains an array of NxN representing the sudoku and using 0 in the empty spaces.


python tests/ [options] < tests/example.txt

Where example.txt it’s an input file containing the matrix in the following format:

Each row it’s separated by ‘’, each element in row per ‘ ‘ and the final line should be blank. Empty spaces are 0

Project details

Download files

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

Files for genedoku, version 1.0.0a4
Filename, size File type Python version Upload date Hashes
Filename, size genedoku-1.0.0a4-py2-none-any.whl (6.1 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page