Python TicTacToe game with Tk GUI and minimax AI