go-minesweeper

module
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0

README

Golang minesweeper

This is an implementation of minesweeper in golang, made with the ui framework fyne.io

Table of Contents

Usage

Or otherwise called how to play the Game.

Tip: The Game starts automatically when revealing the first field.

Controls

To start a new game, you can click on the smiley between the mine count and the timer.

Action control
Reveal a field left mouse button
Flag a field right mouse button
Reveal all none-flagged fields around a field double click with left mouse button
Game options

The following options can be found under the Game menu

Option Description
New Start a new game, same as clicking the smiley between the mine count and the timer
Replay Replay the current game
Quit Close the app
Changing difficulty

To change the difficulty, select a new difficulty in the menu.

The custom option will open a dialog where you can create a custom difficulty. It will tell you if your options don't work.

Potential features

  1. Online play by saving highscores on a webserver
  2. Compiling to web
  3. Save a specific game to be able to play again
  4. Create highscore list

Directories

Path Synopsis
cmd
app
pkg
app
tests

Jump to

Keyboard shortcuts

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