Minesweeper

by RedRafe

Minesweeper - in Factorio!

Scenarios
2 days ago
2.0
115
Environment
Owner:
RedRafe
Source:
https://github.com/RedRafe/minesweeper
Homepage:
https://mods.factorio.com/mods/mine-sweeper
License:
GNU GPLv3
Created:
7 days ago
Latest Version:
0.2.1 (2 days ago)
Factorio version:
2.0
Downloaded by:
115 users

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.


Demo video link

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!