A modern, mobile-friendly implementation of the classic Minesweeper game with keyboard and touch controls.
- Left-click or Tap: Reveal a cell
- Right-click or Long-press: Place/remove a flag
- Avoid all mines
- Numbers show adjacent mines
- Three difficulty levels (Easy, Medium, Hard)
- Mobile-friendly touch controls
- Dark mode support
- Accessible keyboard controls
- Clean, modern UI
Play the game here:
https://rajishere9.github.io/minesweeper-game/
- HTML5
- CSS3 (with Variables)
- JavaScript (Vanilla JS)
No installation needed - just open the live demo!
To run locally:
- Clone this repository
- Open
index.html
in your browser
MIT License - free to use and modify