Skip to content
Advertisement

Tag: tic-tac-toe

How to reset the state after a tictactoe game?

how do i reset the state of the board after a tictactoe game? i want to fire the startGame() function where it will clear out all the x’s and O’s of the board whenever i hit the restart button. or do you have any other cleaner approach to do so? thank you so much Answer Bear in mind that element.className

Advertisement