Minesweeper 1: Any x Any, Any Mines

(remixed from minesweeper, by lionheart921) by isaactium
See Code Download Embed
IT'S BEEN COMPLETELY REWRITTEN LETS GOOO
A recreation of minesweeper? Yes, I decided it's finally time. Now with an explanation:
The goal is to click everything but the mines. Clicking a mine causes you to lose!
The numbers tell you how much mines are around it, including diagonals.
Pressing space places a flag on the tile. Flags are used to mark mines. Tiles with flags can't be clicked. To remove a flag, press space again.
Variation specific:
Normal minesweeper. Defaults to 15x15 with 20 mines. Click "New game" to start a new game. Enter in a width (min 6, max 28), height (min 6, max 20), and number of mines (min 6, max (width-1)*(height-1)) Leave any answers blank to leave as is.

Created December 9, 2023

Last updated December 9, 2023

Published December 9, 2023