I have tried to use the Minimax algorithm in my tic tac toe game but when the human player makes a move the computer player doesen’t do anything. Can someone look to see if I’am doing something wrong or should I implement the algorithm in another way because I use a variant of Minimax called Negamax. Please help! Here is the link: https://codepen.io/Teo03/pen/yzvbPE .
Tic Tac Toe aiPlayer dosen't make a move
use the browser console to spot the errors from developers tools,
TypeError: input[winCombos] is undefined
I’m stuck on that, I don’t know how to solve it. Can you please help?