I am making my own version of minesweeper using p5.
Right now, when I click on the bomb cell, I show all the bombs in the given grid.. but the game is still playable. Is there any way to restart the game without reloading the page?
I can produce an alert but that does not do much except say that "game is over", is there any way to restart when I click on OK on that?