Commit graph

22 commits

Author SHA1 Message Date
a0594d1561 Add some doc strings 2017-10-10 12:51:33 -07:00
fb1066f716 Fix the board size parameter in a test 2017-10-10 12:51:27 -07:00
e5d00debc7 Rename square -> box 2017-10-10 12:51:11 -07:00
35647fc8c9 Change the meaning of size
- size is the size of one side of a square
- row_size is the length of the grid on one side
- grid_size is the area of the grid
2017-10-10 12:44:24 -07:00
a9a01d3fd4 Fix solved property 2017-10-10 11:59:29 -07:00
cf43b02aa9 Add test_peers(); fix up some errors found 2017-10-10 11:43:02 -07:00
00225aca44 Add peers and index_peers for a given (x,y) 2017-10-10 09:55:51 -07:00
19a9bc9d37 Tweak the str printing a bit 2017-10-10 09:55:34 -07:00
93a4fecb26 Add helpers to get rows, cols, and squares for particular coordinates 2017-10-10 09:55:09 -07:00
3017b1e923 Rename initial init attribute to board; make self.board -> _board 2017-10-10 09:53:55 -07:00
88f0e07c06 Copy pasta error 2017-10-09 15:03:33 -07:00
5a32743d7b Add initial arg to Sudoku.__init__() 2017-10-08 08:26:34 -07:00
eae05487b9 Add puzzles and puzzles.py from the old branch 2017-10-08 08:26:18 -07:00
5696c087d8 Add a TODO 2017-10-08 08:06:34 -07:00
b5ac48bc10 Little bit o' cleanup 2017-10-08 08:04:34 -07:00
3fabd4b420 Rough, probably incomplete solved property 2017-10-08 08:00:45 -07:00
5ebe1f58ff Add index_* properties for returning ranges of indexes 2017-10-08 07:56:56 -07:00
01428e3972 Fix squares; add dimension property; add some tests 2017-10-08 07:23:03 -07:00
f98a0f4f75 Quick implement rows, columns, and square 2017-10-07 12:24:41 -07:00
2feef04ad9 Working on the solved property 2017-10-07 10:39:19 -07:00
53629f4d56 Empty Sudoku board, with a pretty printing __str__() 2017-10-07 09:20:49 -07:00
187eebd913 README.md 2013-08-28 23:09:43 -07:00