Commit graph

21 commits

Author SHA1 Message Date
bb7f11846f Also allow debug GET arg 2017-09-30 14:17:30 -07:00
a6f90703fb Get the debug flag working correctly 2017-09-30 14:13:04 -07:00
f74433c7c7 Output the board as a 1D list of characters 2017-09-30 14:04:20 -07:00
d285d8087e Do not play moves if a winner exists already 2017-09-30 14:04:08 -07:00
a6d779c9fe Make the invalid board message nicer 2017-09-30 14:01:06 -07:00
878d8f479c Get the children sorting figured out 2017-09-30 13:56:00 -07:00
a29e9bd8cf Set TTT_DEBUG to 1
Print some extra stuff when TTT_DEBUG is 1
2017-09-30 13:55:30 -07:00
1a48c696ea Remove empty check 2017-09-30 13:34:46 -07:00
c725d3764d A little script to exercise the Board manually 2017-09-30 13:32:33 -07:00
a38f8ca2e8 Some unit tests 2017-09-30 13:32:21 -07:00
0cec60d20c Actually fix the diagnoal checks 2017-09-30 13:31:12 -07:00
4a95079c5c Default argument for Board initializer 2017-09-30 13:31:03 -07:00
fc7e4ec602 Add back the O turn check 2017-09-30 11:42:59 -07:00
1bf689951b Fix a typo 2017-09-30 11:42:49 -07:00
d126920fec minimax 2017-09-30 11:12:37 -07:00
920ae1ac49 Check if it is O's turn 2017-09-30 09:34:46 -07:00
8966ec3b19 Move format to __str__ and implement __repr__ 2017-09-30 09:13:08 -07:00
babce61514 Move everything to Board class; implement format() 2017-09-30 09:11:46 -07:00
1c1d6a17ef Basic validation for a board 2017-09-30 08:43:09 -07:00
b5a3415cd9 Use gunicorn for running wsgi stuffs 2017-09-30 08:31:03 -07:00
ca76c99b3d Barebones Heroku app 2017-09-30 08:11:17 -07:00