Help us shape the future of Go! Take the 2026 Go Developer Survey

gomines

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: GPL-3.0

README ยถ

โœฑ Gomines โœฑ

A little minesweeper game written in Go to play around the BubbleTea framework.

[!NOTE] The latest version is v0.2.0.

gomines screenshot

๐Ÿ–ฅ๏ธ Installation

Sources

You can compile Gomines from the sources with:

make build

The binary file will be in build/bin.

Go (all platforms)

Make sure to have a proper Go installation and $GOPATH/bin in your PATH.

Run:

go install github.com/mconfalonieri/gomines/cmd/gomines@latest
AppImage (Linux)

Download the latest AppImage file specific for your architecture (amd64 or arm64).

If you have an AppImage manager, use it. Otherwise, an AppImage is basically a wrapped executable with everything required to run the program, so run:

mv gomines_0.2.0_linux_amd64.AppImage gomines

chmod +x gomines

Make sure to use the correct architecture suffix: amd64 or arm64.

Homebrew (Linux and MacOS X)

Make sure you have Homebrew properly set up.

You can install Gomines with this command:

brew install mconfalonieri/tap/gomines

Or, if you prefer better control:

# Tap the repository
brew tap mconfalonieri/tap

# Install Gomines
brew install gomines
Windows

For now the options are:

  1. Install the unsigned executable from the latest release
  2. Use WSL and check the linux instructions

๐ŸŽฎ Guide

Setup

Once you launch the game, it will ask you some questions. You can just accept the default value by pressing Enter and it is always possible to exit by pressing Esc.

  1. Your name (will be visualized later on the status bar). The default is "Player One".
  2. The minefield width (default: 10 cells)
  3. The minefield height (default: 10 cells)
  4. The number of mines (default: 10 cells)
  5. The type of glyphs to use: Unicode or ASCII (default: Unicode)
The game

The goal is to mark all the cells containing mines and to open all hidden cells that don't contain a mine. The status bar below indicates:

  • Player status: an emoticon that represents if the player is still playing, lost, or won;
  • Remaining mines: the number of cells that still need to be marked โš‘;
  • Hidden cells: the number of hidden cells that don't contain mines.

The following keys can be used to interact while in game mode:

Key Description
โ†, H Move left
โ†“, J Move down
โ†‘, K Move up
โ†’, L Move right
space, F Mark/unmark a cell
Enter Reveal a cell
Esc Exit the game

The cells can have the following symbols. Some symbols are available only in specific phases:

  • any: the symbol is shown in any phase of the game
  • game: the symbol is shown only while the game is going on
  • end: the symbol is shown only when the game ends
Unicode ASCII Meaning Phase
? ? Hidden cell game
โš‘ @ Marked cell any
โœฑ * Mine end
โœ˜ X Wrongly marked cell end

When opening an empty cell, the number of mines surrounding this cell will be shown (or an empty space if it is zero). This number can be used to understand which cells around it can have a mine.

For example, if the following is shown, we will know that both the cells marked with ? are mined, because the number 2 is shown.

โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”
โ”‚โ”‚ 1 โ”‚โ”‚ ? โ”‚โ”‚ ? โ”‚
โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜
โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”
โ”‚โ”‚ 1 โ”‚โ”‚ 2 โ”‚โ”‚ 2 โ”‚
โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜
โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”
โ”‚โ”‚   โ”‚โ”‚   โ”‚โ”‚   โ”‚
โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”˜
โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”

End

The game can end in two possible scenarios:

  • winning scenario: the player has marked all the mined cells and didn't fall on a mine;
  • losing scenario: the player fell on a mine. In this case the cells that were incorrectly marked are shown as well โœ˜.

Directories ยถ

Path Synopsis
cmd
gomines command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL