summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Eevee [Sat, 13 Dec 2008 04:02:00 +0000 (20:02 -0800)]
Turned original test puzzle into a real testcase.
Runnable via setuptools, too: python setup.py test
Eevee [Sat, 13 Dec 2008 03:56:57 +0000 (19:56 -0800)]
Moved code out of lib/.
There's no non-code to protect it from, so not much point in the
separation.
Eevee [Sat, 13 Dec 2008 03:03:06 +0000 (19:03 -0800)]
Turned pseudoku.py into a real project.
Gave it a setup.py.
Broke it into a main script and a couple modules.
Added a .gitignore for vim/python cruft.
Otherwise, works exactly the same.
Eevee [Wed, 10 Dec 2008 02:50:02 +0000 (21:50 -0500)]
Improved creating a grid from data.
Grid.from_lists is now a constructor that optionally takes explicit
height and width; without them, it attempts to guess the likely
dimensions of the grid and boxes.
Added a Grid.from_string that is similar but reads from a string.
Eevee [Sun, 7 Dec 2008 00:16:48 +0000 (19:16 -0500)]
Simple Sudoku solver.
Solves a 3x3 Sudoku grid hardcoded into it, as long as only simple
elimination is required.