Skip to main content

A simple python package that solves sudokus using genetic algorithms

Project description

# Genedoku

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

## Basic usage

```python
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

```bash
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 '\n', 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

genedoku-1.0.0a2-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

Details for the file genedoku-1.0.0a2-py2-none-any.whl.

File metadata

File hashes

Hashes for genedoku-1.0.0a2-py2-none-any.whl
Algorithm Hash digest
SHA256 174091f043edea54288fd7834579e2f71b455e02b5e938d85a9453b15f8f1b9d
MD5 443c5c4daae6f046d35d04eb0cb8e25e
BLAKE2b-256 545c6c3d00cca73b308ecdb8e304e6a9cda7a4ce593c93b63c627c6450364df3

See more details on using hashes here.

Supported by

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