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.
Test
python tests/test_genedoku.py [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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for genedoku-1.0.0a4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5fe2e347f5e49e784f6b28f4af1fad4e92d4362adfa416c0f197154696771a |
|
MD5 | f8b43b938b9702d47beb19e3dc42d8fe |
|
BLAKE2b-256 | 9e55d32815726a8f9b6598b327d9e13c5516151d68c3b4352445dcd92e5624af |