Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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

Release history Release notifications

This version
History Node

1.0.0a4

History Node

1.0.0a3

History Node

1.0.0a2

History Node

1.0.0a1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
genedoku-1.0.0a4-py2-none-any.whl (6.1 kB) Copy SHA256 hash SHA256 Wheel py2 Aug 31, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page