I’m working on a Tic Tac Toe project and having trouble with a certain task. Build the functions that allow players to add marks to a specific spot on the board, and then tie it to the DOM, letting players click on the gameboard to place their marker. Don’t forget the logic that keeps players from playing in spots that
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