tictactoe

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

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