Yay! Ai! z to undo dark red = red will win dark blue = blue will win dark grey = score hasn't been computed yet python code here: https://github.com/LoganAbel/TicTacToeAI/tree/main this uses min-max with some early escape conditions for efficiency