Minesweeper Classic

Seele01-Flash
By
Minesweeper Classic brings the beloved puzzle game to your browser with 4 challenging difficulty levels. Use logic and strategy to find all 20 hidden mines while avoiding explosive mistakes.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Minesweeper Classic (Neon Edition)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A modern "Cyberpunk/Neon" aesthetic to differentiate from the traditional Windows look (based on the screenshot's neon typography). The background should be a deep void black (#050505). * **Grid/Tiles:** Use `Three.InstancedMesh` for the grid blocks to ensure 60FPS on mobile. Unrevealed blocks are dark gray, slightly chamfered cubes with a matte finish. * **Revealed State:** When a block is cleared, it should depress (translate -y) or vanish, revealing the floor underneath. The floor displays the number (1-8) using glowing neon emission materials (Cyan for 1-2, Yellow for 3-4, Red for 5+). * **The Mine:** A low-poly spiked sphere with a pulsating red emissive material. * **The Flag:** A holographic neon vertical marker or a glowing texture overlay on top of the block. * **Camera:** Use an **Orthographic Camera** positioned at an isometric angle (45 degrees) to provide a clear, distortion-free view of the grid. * **Performance:** Limit dynamic lights; use baked lighting or simple emissive materials. ### 2. Audio Requirements * **BGM:** A chill, low-tempo Synthwave or Lo-Fi track that aids concentration (looping). * **SFX - Interaction:** A crisp, mechanical "switch" sound when toggling between Dig/Flag modes. A high-tech "blip" when revealing a safe tile. * **SFX - Cascading:** A rapid-fire "pop-pop-pop" sound effect when a "0" tile is clicked, and the empty area automatically expands (flood fill). * **SFX - End Game:** A heavy bass "glitch/shutdown" sound for losing (hitting a mine), and a harmonious rising chord for winning. ### 3. Gameplay Loop * **Core Logic:** Classic Minesweeper rules. The grid generates *after* the first click to ensure the first move is never a mine. * **Recursive Reveal:** If a tile with "0" adjacent mines is clicked, automatically trigger a flood-fill algorithm to reveal all connected "0" neighbors and their immediate border numbers. * **Win/Loss:** * **Win:** All non-mine tiles are revealed. Show a "Level Clear" overlay with a time score. * **Loss:** A mine is clicked. The camera shakes slightly, the mine glows bright red, and all other mines on the board are revealed. * **Progression:** Implement 4 difficulty presets (e.g., Beginner 9x9, Intermediate 16x16, etc.) selectable via a start menu. ### 4. Mobile Controls & Interaction * **Control Scheme:** **Do not** use long-press for flagging (it feels sluggish). Implement a large, distinct **Toggle Button** at the bottom right of the UI (Thumb zone) that switches the tap action between "DIG" (Shovel icon) and "FLAG" (Flag icon). * **Raycasting:** Use Raycaster for touch input. Increase the hit-test radius slightly to accommodate finger inaccuracy. * **Camera Controls:** Allow 2-finger panning (scrolling the grid) and pinch-to-zoom if the grid is larger than the screen width. * **Orientation:** Lock to **Portrait Mode** for standard levels (easier for one-handed play) but allow responsive scaling if the user rotates to Landscape. * **Feedback:** * **Haptic:** Trigger `navigator.vibrate(50)` on flagging and `navigator.vibrate([100, 50, 100])` on Game Over. * **Visual:** When a tile is touched, highlight it briefly before the action executes to confirm selection. ### 5. Output Language * English Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Minesweeper Classic is the definitive online version of the legendary puzzle game that has captivated players for decades. This timeless brain teaser challenges your logical thinking and deductive reasoning skills as you navigate a minefield using only numbered clues. With a stellar 4.3/5 rating from players worldwide, this HTML5 version delivers the authentic Minesweeper experience directly in your browser.

The game combines elements of puzzle-solving, strategy, and careful risk assessment, making it perfect for both casual gaming sessions and serious mental training. Whether you're a Minesweeper veteran or discovering this classic for the first time, the intuitive interface and multiple difficulty levels ensure an engaging experience for all skill levels.

Core Features

Classic Minesweeper Gameplay

Experience the authentic Minesweeper mechanics with modern browser compatibility. The game faithfully recreates the original rules while adding smooth HTML5 performance and responsive design.

Four Difficulty Levels

Progress through increasingly challenging minefield configurations: - Beginner : Perfect for learning the basics - Intermediate : Balanced challenge for regular players - Advanced : Test your strategic thinking - Expert : Ultimate challenge for Minesweeper masters

Score Tracking System

Compete against other players with the integrated scoring system. Your completion time and accuracy are recorded, allowing you to track improvement and compare performance with the global community.

Educational Value

Minesweeper Classic serves as an excellent brain training tool, developing: - Logical reasoning : Deduce mine locations using numerical clues - Pattern recognition : Identify common minefield configurations - Risk assessment : Balance safety with efficiency - Concentration : Maintain focus throughout complex puzzles

Game Mechanics

The 20-Mine Challenge

Your objective is clear: locate all 20 hidden mines scattered across the grid. Each numbered cell reveals how many mines are adjacent to it, providing crucial intelligence for your deductive process.

Flag System

Use the flag feature strategically to mark suspected mine locations. This visual system helps you keep track of dangerous areas and organize your solving approach systematically.

Safety First Approach

One wrong click ends the game instantly, making every move a calculated decision. This high-stakes element adds tension and rewards careful analysis over hasty guessing.

How to Play

Getting Started

  1. Initial Click : Start by clicking any cell to begin revealing the minefield
  2. Read the Numbers : Each revealed number indicates mines in the 8 surrounding cells
  3. Flag Suspicious Areas : Right-click or use the flag button to mark potential mines
  4. Clear Safe Cells : Left-click on cells you believe are mine-free
  5. Win Condition : Successfully identify all 20 mines to complete the puzzle

Strategic Tips

  • Start with corners and edges : These areas have fewer adjacent cells, making deduction easier
  • Use the flag system : Mark obvious mines to reduce confusion
  • Look for patterns : Common configurations like 1-2-1 sequences often indicate specific mine arrangements
  • Take your time : Speed comes with practice; focus on accuracy first

Advanced Techniques

  • Process of elimination : Use multiple numbered clues together to narrow down mine locations
  • Probability assessment : When guessing is unavoidable, choose cells with the lowest mine probability
  • Edge analysis : Pay special attention to grid boundaries where mine patterns are more constrained

Why Play Minesweeper Classic

Perfect Mental Exercise

Minesweeper Classic offers one of the most effective ways to exercise your brain. The game requires sustained concentration, logical analysis, and strategic planning, making it an ideal daily mental workout.

Accessible Anywhere

As an HTML5 game, Minesweeper Classic runs perfectly on any modern device. No downloads, no installations – just instant access to classic puzzle gaming wherever you have an internet connection.

Timeless Appeal

Unlike trend-based games, Minesweeper's appeal is timeless. The fundamental challenge of logical deduction remains as engaging today as when the game was first created, ensuring lasting entertainment value.

Skill Development

Regular Minesweeper play develops transferable skills including: - Enhanced problem-solving abilities - Improved analytical thinking - Better risk assessment capabilities - Increased attention to detail

Community Competition

The integrated scoring system connects you with a global community of Minesweeper enthusiasts. Track your progress, set personal records, and see how your skills compare with players worldwide.

Frequently Asked Questions (FAQ)