[Solved] incorrect output from minimax algorithm for Tic Tac Toe


I tried a couple of times to debug the code , but wasn’t able to fix it , so i wrote the code again with a different approach and it worked. Here‘s the code

solved incorrect output from minimax algorithm for Tic Tac Toe