Minesweeper

This is a Minesweeper game styled after Windows 98, built with Next.js.

Game Logic

  • Clicking a mine ends the game.
  • Clicking a square with an adjacent mine shows the number of mines.
  • Clicking a square with no adjacent mine clears that square and adjacent squares.
  • The numbers indicate the count of adjacent mines.
  • Right-click to flag a square; flagged squares can't be opened.
  • Double-clicking a number with equal flagged squares around it opens all unopened adjacent squares.

Resources