opensweeper is a Minesweeper clone with classic, familiar controls, rules, layout, and visuals: three difficulty modes, first-click safety, chord reveals, the face button, and a mine counter that goes negative if you over-flag. It should feel familiar to anyone who has played the original. Bare-bones but complete, and runs easily on Windows, Mac, and Linux, plus directly in the browser via WebAssembly.

opensweeper gameplay

No roadmap, no users, nobody to ship it to. I wanted the whole thing rebuilt in plain C, behaving exactly like the version I grew up clicking through. It does, so I left it there.

If you want to save a run, opensweeper can record your gameplay directly to an MP4. Toggle it from the menu before you start. (Recording is desktop-only; the web build leaves it out.)

Controls

InputAction
Left clickReveal cell
Right clickFlag / unflag
Middle click, Left + RightChord reveal
Arrow keys / WASDMove cursor
Space / EnterReveal cell
FFlag cell
EscapeReturn to menu
Alt+EnterToggle fullscreen

In the browser (WebAssembly)

The same C is compiled to WebAssembly with Emscripten, so the browser version is the actual game, not a separate port — same rules, same feel, same code. You can play it here — nothing to install.

Download

Prebuilt binaries for Linux, Mac, and Windows are linked below, plus a WebAssembly bundle. Or just play it in your browser. Source is available on GitHub. See the README for full project information.