Factorio Minesweeper
A fully-playable, tile-based Minesweeper experience inside Factorio.
Uses custom tile prototypes, reveal/flag/chord mechanics, async flood-fill, and automated archival of solved regions to keep performance smooth even on huge grids.
Features
๐งจ Classic Minesweeper Gameplay
- Left-click to reveal tiles
- Right-click to flag suspected mines
- Settings to enable auto-chord to quickly reveal numbered tiles
- Chain-revealing is handled asynchronously to avoid lag
๐ญ Factorio-Adapted Mechanics
- Unlimited lives, but stepping on a hidden mine triggers a nuclear explosion โ walk carefully!
- Un-flagging incorrectly flagged empty tiles will reveal a small biter nest surprise.
- Correctly marking mine tiles (flagging real mines) rewards the player by spawning resources.
๐ Real-Time Stats & Leaderboards
- Tracks per-player and per-force stats (reveals, flags, mistakes, detonations, etc.)
- Persistent leaderboard system ranking top solvers and safest players
- Multiple stat overlays to choose from
๐บ๏ธ Procedural Field Generation
- Mines are generated using deterministic noise functions
- Built-in whitelisting for Nauvis mapgen, compatible with planets mods
- Safe early area around spawn
๐ฆ Performance-Friendly
- Computations run over multiple ticks
- Solved areas are archived and replaced with blank tiles
- Entire chunks are auto-archived once cleared
๐ฎ Controls & Commands
| Action | Description |
|---|---|
| Reveal (LMB) | Reveal a tile โ if zero, flood-fills adjacent tiles |
| Flag (RMB) | Toggle a flag on a tile |
| Chord | Settings -> Player settings -> Chord |
/minesweeper-debug |
Turns ON/OFF the debug visualization tool (Admin only, debug) |
/minesweeper-solve |
Turns ON/OFF the auto-solver (Admin only, debug) |
Credits
Credits to tomthedeviant2 for the wonderful Minesweeper assets
Credits to MewMew for original idea & implementation
Credits to _CodeGreen for all the support, ideas, ptototype hacks
Credits to notnotmelon for the super otimized runtime scripts
Community & Support
Join my Discord
Found a bug? Want to share your board? Hop in and say hi!
