Back to library
3 lines329 words

Minesweeper Game

Applies across 0 technologies and 4 prompt categories. Save it to your workspace or launch it with your favorite assistant.

Technologies

No specific tooling required for this prompt.

Categories
Puzzle Games
Logic Games
Minesweeper
Web Games

Develop a complete Minesweeper game using HTML5, CSS3, and JavaScript. Create a grid-based board where cells can contain mines or numbers indicating adjacent mines. Implement three standard difficulty levels: Beginner (9x9 grid, 10 mines), Intermediate (16x16 grid, 40 mines), and Expert (30x16 grid, 99 mines), plus custom board option. Add left-click to reveal cells and right-click to flag potential mines. Implement the flood-fill algorithm for revealing connected empty cells when clicking an empty cell. Include a mine counter showing remaining mines (total mines minus flags placed). Add a precise timer showing elapsed time in seconds. Implement first-click guarantee where the first click is always safe and opens a sizeable area. Add chord clicking (clicking both mouse buttons on revealed number) to quickly reveal surrounding cells if enough flags are placed. Include proper win condition (all non-mine cells revealed) and lose condition (clicking a mine) detection. Add reset/new game functionality that generates a new random board. Implement game state indicators: playing, won (smiley face), or lost (sad face) button. Create reveal animations for cells with smooth transitions. Add explosion animation when clicking a mine. Include celebratory animation and confetti when winning. Implement sound effects for revealing cells, flagging, winning, and exploding (with mute option). Add visual effects showing all mines when game is lost, with incorrect flags highlighted. Include a question mark mode (right-click twice) for cells you're uncertain about. Implement game statistics: total games, wins, losses, win rate, best times for each difficulty. Add a leaderboard for best times in each difficulty level. Include an undo feature for the last move (optional, can be disabled for purists). Create different themes: classic Windows style, modern flat design, and dark mode. Add keyboard support for navigation and flagging. Implement touch-and-hold for flagging on mobile devices. Include a tutorial mode explaining the rules with an interactive example. Add accessibility features with keyboard-only play support. Make the design responsive for all screen sizes. Include detailed settings for customizing colors, animations, and gameplay options.