Commit Graph

5 Commits

Author SHA1 Message Date
Cory 70c8ff1308 (Completed Nim as part of the tic tac toe lab.)
What I changed
(I made a copy of game_stub.py called game.py and corrected the methods
so that the game would work.)

Why I changed it
(To complete the lab.)

Estimate for remaining time to finish assignment: [Done]
2024-04-08 10:12:37 -04:00
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
Cory ba0cc09a82 Completed checkpoint 1 of the tic tac toe lab.
What I changed
(I responded to the prompts in notes.md for the first checkpoint.)

Why I changed it
(My goal was to complete the first checkpoint, which included learning more about how the game works and looking at the classes and methods used..)

Estimate for remaining time to finish assignment: Hopefully will finish this lab tonight once I get home from work :)
2024-03-05 12:53:35 -05:00
cchung da4a3bc4c0 Initial commit 2023-08-25 14:34:55 +00:00