Stuck in the Tic Tac Toe Project (Replay Button)

Good community, these days I’m finishing this project and I’m mentally stuck because I don’t know how to restart the game, besides Codepen doesn’t allow the use of document.location.href and window.location.reload().

What changes I would make inside the replayBtn.onclick???

Thanks!! :heart:

You just need to reverse all the actions that clickedBox and bot performed (i.e. adding classes and setting id values) and any applicable global variables as if the page had first loaded. Also, you would need to hide/unhide the applicable modals.