TicTacToe against artificial intelligence

You’re in luck: TicTacToe came up in a recent thread here, and Chin Kee Yong posted a complete implementation.