I have to point out that it is missing 1 minesweeper mechanic.
If you left and right click (both buttons at the same time) on a number that has the right amount of flags around it, all adjacent tiles will be revealed.
sorry I tried to implement chording and it couldn’t work properly due to some weird javascript html problem. I’ll try to implement it when I’m more experienced.