Commit graph

23 commits

Author SHA1 Message Date
e004d319e3 IDK what this WIP is 2017-10-06 20:27:01 -07:00
6cc3fed4b3 Implement search
- Remove __setitem__; it was getting in the way...
- deepcopy the board for each trial in search()
2013-08-30 17:09:41 -07:00
cc5e35ff81 Working on search() 2013-08-30 10:11:44 -07:00
81e3296f6f Create keys then assign values in __init__ 2013-08-29 22:46:38 -07:00
fdee9ed716 Couple tweaks to help with parsing Euler and Norvig puzzles
- Make xy_key and xy_kwargs_key classmethods
2013-08-29 22:32:15 -07:00
09c6c4287f Convert Euler puzzles into Norvig format 2013-08-29 22:32:05 -07:00
6a5e13e345 Add quick routines for parsing the puzzles in puzzles/ 2013-08-29 22:31:49 -07:00
3d69b67185 Fix printing -- had the x and y coordinates flipped 2013-08-29 22:05:16 -07:00
05976b51fb TODO and use self.possible_values instead of explicit range 2013-08-29 21:44:19 -07:00
Eryn Wells
9f4a775472 Add puzzles
Both via http://norvig.com/sudoku.html
- euler.txt: http://projecteuler.net/project/sudoku.txt
- norvig.txt: http://magictour.free.fr/top95
2013-08-29 16:32:24 -07:00
Eryn Wells
5a2df50e02 Add string test 2013-08-29 16:14:35 -07:00
Eryn Wells
7e43451eb5 Tests yay! 2013-08-29 15:58:43 -07:00
Eryn Wells
3c21549ee9 Bare bones tests module 2013-08-29 15:05:38 -07:00
Eryn Wells
a926bc5a99 Board.solve() and Board.assign() 2013-08-29 15:05:30 -07:00
Eryn Wells
d20a0bbdf7 Fix the divider printing logic (again) 2013-08-29 12:05:34 -07:00
cac812e46f Fix divider length computation 2013-08-29 11:57:31 -07:00
8540f60381 Use length of str(self.size) to compute size of each square in the printed grid 2013-08-29 11:49:34 -07:00
6a753a8dac Docstring updates 2013-08-29 09:52:52 -07:00
7fd051802c Implement the solved property 2013-08-29 09:42:06 -07:00
31415f8175 Ignore __pycache__/ 2013-08-28 23:10:27 -07:00
af92bb89f8 Ignore *.pyc 2013-08-28 23:10:15 -07:00
c120ddc4fa Add sudoku module -- work thus far 2013-08-28 23:09:55 -07:00
187eebd913 README.md 2013-08-28 23:09:43 -07:00