You can try it out here:


  • npm run dev: Run the development compiler/server (go to localhost:8000 to play the game).
  • npm run build: Build the release build (to the path /release/minesweeper (version)).

Mouse controls

  • Left click reveals an hidden square.
  • Middle click adds a question mark flag to the selected square (clicking again removes it).
  • Right click adds a mine flag (right-click again to remove it).

Keyboard shortcuts

  • r: Restart the game.

When the dialog is opened

  • esc or r: Closes the dialog and restarts the game.