Go to file
Cory 9500a68ae7 Fixed TTTGame.check_winner.
What I changed
Added 8 cases to check for to see if someone won: three rows, three columns and two diagonals.

Why I changed it
TTTGame.check_winner always reported false, so the game only ended when the board was full even if someone should have won.
Estimate for remaining time to finish assignment: [Like a few hours assuming my students don't rip a door off its hinges in the bathroom again...]
2024-03-13 13:38:20 -04:00
nim Initial commit 2023-08-25 14:34:55 +00:00
strategy Initial commit 2023-08-25 14:34:55 +00:00
ttt Fixed TTTGame.check_winner. 2024-03-13 13:38:20 -04:00
.commit_template Initial commit 2023-08-25 14:34:55 +00:00
.gitignore Initial commit 2023-08-25 14:34:55 +00:00
notes.md Fixed TTTGame.check_winner. 2024-03-13 13:38:20 -04:00
play_nim.py Initial commit 2023-08-25 14:34:55 +00:00
play_ttt.py Initial commit 2023-08-25 14:34:55 +00:00
poetry.lock Initial commit 2023-08-25 14:34:55 +00:00
pyproject.toml Initial commit 2023-08-25 14:34:55 +00:00