Commit Graph

3 Commits

Author SHA1 Message Date
Cory 0a3d7e31f5 Completed checkpoint 3
What I changed
(I gave the computer player the look ahead strategy. This also required importing LookaheadStrategy in player.py.
I also answered the questions in notes.md.)

Why I changed it
(I was working on completing checkpoint 3. I realized I had to do the importing since otherwise it wouldn't let me play.)

Estimate for remaining time to finish assignment: [I am REALLY bad at these estimates. I mean in terms of actual work time, I'm probably not too far off. Fingers crossed, maybe another hour of actual work time?]
2024-03-20 20:13:39 -04:00
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
cchung da4a3bc4c0 Initial commit 2023-08-25 14:34:55 +00:00