Closed daryl-micah closed 7 months ago
Draw condition for JavaScript code : we can initialise a count variable from 0 and keep updating by +1 after every click. The case when our count is 9 we have to display the result as Draw (Note : there may be a case where user wins on 9th count, So we have to call display the result as Draw after checkWinner function).
Return false after for loop in checkWinner function your issue gets resolved.
The JS code used to decide draw says the game is drawn if a player wins on the 9th (LAST move).