Classic Minesweeper: safe first click, flags and three difficulties

Mine placement with guaranteed safe first click, right-click flags, chord reveal when the number matches, and a timer.

Ready-to-use Cerewro prompt

Cerewro Chat — HTML5 (browser on Windows)
Generate a Minesweeper game for Windows with these specifications.

Features: presets 9×9/10, 16×16/40, 30×16/99; first click is never a mine (regenerate if needed); left reveal, right flag, middle chord when adjacent flags match number; mine counter; timer from first click; smiley resets board; win when all non-mines are revealed.

Rules: classic rules; no forced guess on first click.

Tech: HTML5, CSS3, ES6+ JavaScript; Canvas or DOM; single index.html.

Windows: Edge or Chrome.

Optional: Pygame build with same presets and high scores.
Cerewro Chat — Python 3 (Windows desktop)
Build the same Minesweeper as a Windows desktop app.

Features: Pygame 2; mouse; same generation logic; best times per difficulty in JSON.

Tech: Python 3.10+; main.py; requirements.txt.

Run: python main.py after venv.

Include: difficulty menu and optional sound.

How to get the most out of it