+ 1
Please help me fix the bug!!!
The browser crashes anytime the player clicks on the last available cell after computer has played. I think it has something to do with the for loop in the computerMove method but I don't know what's wrong there. Please help. https://code.sololearn.com/W2MGg8x9MV5Q/?ref=app
1 Respuesta
0
What happens when the player picks the last cell on the board and the last element is pop off of the cells array. Should the computer have another turn?
Once you account for that issue, the browser crashes will stop.