TicTacToe and Minimax
问题 I am a young programmer that is learning python and struggling to implement an AI (using minimax) to play TicTacToe. I started watching a tutorial online, but the tutorial was on JavaScript and thus couldn't solve my problem. I also had a look at this question ( Python minimax for tictactoe ), but it did not have any answers and the implementation was considerably different from mine. EDIT: the code you will find below is an edit suggested by one of the answers (@water_ghosts). EDIT #2: I