minesweeper

command module
v0.0.0-...-247b439 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 6 Imported by: 0

README

minesweeper

Multiplayer Minesweeper game, just for recreation programming purpose.

Warning Development in process

Screenshots

Screenshot 2022-10-26 at 12 42 04

How to run

Using Makefile

Start server: make server (or make s)

Start client: make client (or make c)

Using Go directly

Start server:

go run main.go --server

Start client:

go run main.go --client

Or simply run as client (default mode):

go run main.go
Command-line options
Usage:
  main [OPTIONS]

Application Options:
  -s, --server  Run as server
  -c, --client  Run as client
  -a, --addr=   Server address (for client mode) or bind address (for server mode) (default: 127.0.0.1:8080)
      --debug   Enable debug mode

Help Options:
  -h, --help    Show this help message

Controls

Keyboard Controls
  • Arrow Keys or WASD: Move cursor
  • Space: Open cell
  • Enter: Cycle flag markers (Flag → Guess → Hidden)
  • Ctrl+D: Toggle debug display on/off
  • Ctrl+C: Quit game
Multiplayer Features
  • The game supports 2 players taking turns
  • Current player turn is displayed during gameplay
  • Winner announcement when the game ends

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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