2022-12-24 13:47 | Add print_box.h to this repo and remove unused variable from print_box_offset | Wilson Gheen | 3 | +5 | -3 |
2022-12-23 21:51 | Use /dev/urandom if available for better randomness. Temporarily omitted for unit testing because it is slow for some reason | Wilson Gheen | 1 | +18 | -4 |
2022-12-23 19:09 | Make minimax AI choose a random move if it's not a sure win or loss | Wilson Gheen | 2 | +14 | -9 |
2022-12-22 22:01 | Refactor unit tests | Wilson Gheen | 2 | +17 | -18 |
2022-12-22 21:45 | Remove pointless capturing of return value | Wilson Gheen | 1 | +1 | -1 |
2022-12-22 21:44 | Refactor unit_test.c and add tests 9-11 | Wilson Gheen | 3 | +47 | -22 |
2022-12-22 18:55 | Add unit test to verify AI cannot beat itself | Wilson Gheen | 1 | +10 | -1 |
2022-12-22 18:55 | End WIP. Finish (hopefully) unbeatable AI. No detected way for it to lose yet, but there is no random element to its moves | Wilson Gheen | 1 | +13 | -13 |
2022-12-20 22:40 | WIP: Added the beginning of an unbeatable minimax AI. Stops moving altogether if it can't win | Wilson Gheen | 2 | +85 | -10 |
2022-12-18 15:55 | Earlier WIP appears to be working | Wilson Gheen | 1 | +1 | -2 |
2022-12-18 15:40 | Fix comment | Wilson Gheen | 2 | +2 | -4 |
2022-12-18 14:38 | WIP -- refactor to prevent repeating code in blocking/non-blocking "AIs" | Wilson Gheen | 2 | +29 | -35 |
2022-12-18 12:16 | Enable two different `get_move*()`s in one game | Wilson Gheen | 2 | +6 | -4 |
2022-12-18 12:15 | Enable keeping move recent seed, for debugging | Wilson Gheen | 1 | +8 | -1 |
2022-12-18 12:14 | Fix up get_winner...() to detect moves that win for either player; add "AI" that blocks if it can't win this turn | Wilson Gheen | 3 | +49 | -11 |
2022-12-17 21:11 | Fix issue in get_near_wins that ignored some winning moves, and change name | Wilson Gheen | 1 | +45 | -28 |
2022-12-17 15:28 | Add function for "AI" that tries to win | Wilson Gheen | 2 | +83 | -48 |
2022-12-17 13:23 | Add unit testing and begin to implement finding near-wins | Wilson Gheen | 3 | +119 | -24 |
2022-12-13 22:46 | Initial commit. Simple tic-tac-toe game. | Wilson Gheen | 2 | +92 | -0 |