Relative Content

Tag Archive for pythontkintertic-tac-toeminimax

TicTacToe Minimax function, and bestMove Function don’t call tTinker button commands

I’ve been trying to create a tictactoe game that has a GUI using tKinter and utilizes a minimax function to simulate a computer playing against the player. The player should be X and the computer should be O. I’ve implemented a minimax function and a best move function to use the score from the minimax function to call the button where the highest score lies click command, but it doesn’t work for several reasons.