Minesweeper GB

Another version of Minesweeper. This one is written in C with GBDK 2020 for the Game Boy. A port of my earlier WASM-4 version.

Source code is available on GitHub. Web version built by exporting an empty GB Studio project and moving some files around.

Controls

  • D-pad (Arrow keys): Move cursor.
  • A (Z): Uncover a tile, or "chord" when the tile is already uncovered.
  • B (X): Flag a tile.

Controls in parentheses are for the web version.

How to Play

The goal of Minesweeper is to uncover every tile that isn't a mine. Some tiles will reveal a number, which indicates the number of mines around that tile. Flagging a tile makes it impossible to accidentally uncover that tile until that flag is removed.

This implementation supports chording. When a tile's number is equal to the number of flags around it, "uncovering" the tile again will uncover every adjacent unflagged tile. If you've placed a flag on the wrong tile this might reveal a mine! And contrary to its namesake only one button is required to "chord."

The game has two difficulty settings:

  • Normal: 9 x 9 with 10 mines
  • Difficult: 15 x 12 with 25 mines

Implementation

There are three modes available. None use a no-guess generation algorithm, or for that matter implement any sort of solver to make that possible.

  • Classic: Board generation is as random as the code will allow. This brings it more in line with Microsoft Minesweeper that came bundled with older versions of Windows up to and including Windows XP.
  • Safe: The first uncovered tile is always safe.
  • Safer: The first uncovered tile and its neighbors are always safe.
Published 10 days ago
StatusReleased
PlatformsHTML5
AuthorUbersmake
GenrePuzzle
TagsGame Boy, Minesweeper, No AI
ContentNo generative AI was used

Download

Download
minesweeper.gb (Game Boy ROM) 32 kB
Download
minesweeper.pocket (Analogue Pocket ROM) 32 kB

Install instructions

Play the Game Boy ROM by loading it into a flash cart and then onto a Game Boy, or just load it in your emulator of preference. An Analogue Pocket ROM is also available for those looking to play through the Pocket's built in GB Studio-related feature.

Leave a comment

Log in with itch.io to leave a comment.