/minesweeper-js

Little minesweeper game in JS/HTML

Primary LanguageHTML

minesweeper-js

A classic implementation of the Minesweeper game built with HTML, CSS, and JavaScript. This version includes a light/dark theme switcher and saves the user's theme preference in local storage.

Preview

Click here to Preview

Features

Classic Minesweeper gameplay.

  • 10x10 grid with 10 mines.

  • Click to reveal cells.

  • Right-click (or long-press on touch devices, though this implementation uses contextmenu) to flag cells.

  • Score tracking.

  • Mines left counter.

  • Game over messages for winning or losing.

  • Reset button to start a new game.

  • Light/Dark Theme Switcher:

  • Toggle between light and dark visual themes.

  • Theme preference is saved in the browser's localStorage.

  • Responsive design for playability on different screen sizes.

  • Styled with a retro "Press Start 2P" font.