I’ve been reading about Blondie24: Playing at the Edge of AI, which is about a neural network that is trained to play checkers, by playing against itself and using an genetic algorithm. I haven’t finished the book yet, but so far it’s pretty good. I think I’d like to do something like that, but I’m gonna start out small. Thus, Tic Tac Toe. It’s pretty easy, and I spent a little while today just making the framework first.
Here’s the code which basically checks for who wins and prints the board, I’ll do the rest over the next few days maybe: