command
module
Version:
v0.0.0-...-bbe6e07
Opens a new window with list of versions in this module.
Published: Oct 30, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Terminal Minesweeper
$ ./mine
@ . @ . . . . . . . @ . . . . . . . . .
. . @ @ . . @ . @ . . . . @ . @ @ . . .
@ 2 2 2 2 @ . . . . . . . . @ . @ . . @
. 1 2 . . . @ . @ . . . . . . . . .
. 2 1 1 @ . % % . . @ . . . @ . . . @
@ @ 2 1 2 . . . . @ @ . . . . . . . @ .
. . . @ . . . . @ . . @ @ . . @ 1 1 1 1
. @ . . . . . . . 2 1 3 @ 2 1 1 1
. . . . . . . @ @ 1 1 1 1
. . [@] . . @ . .restart? [y/n] 1 2 2 1
. . . @ . @ @ . . 2 1 1 @ @ 3 1 1
. . . . % . . @ @ @ 1 1 1 1 1 . @ . @ .
. 2 @ . @ . . . . . . . @ . . . @ . . @
@ . . . 2 @ . . . % . @ . . % . . . @ .
@ @ @ . . . @ . . . . @ . . . . @ . . .
@ . @ @ . 1 . . . . . % . . . . @ . . .
@ . . . . . . @ . @ . . . . . . . . . .
. . . @ . @ . @ . . . . @ . . . . . . .
. . . @ . . . @ . . . . . . . @ . . . .
@ . . . . @ . . . . @ . . @ . . . . . .
Stolen from here.
Created to better understand how to write interactive terminal application, and play with the idea of building golang code through make.
Description
Regular minesweeper for terminal, written in go. Nothing special.
Representation |
Description |
. |
closed cell |
|
empty cell |
@ |
bomb |
% |
flag |
Build
go build .
Controls
Shortcut |
Description |
Escq |
quit |
UpW |
move right |
DownS |
move down |
LeftA |
move left |
RightD |
move right |
EnterF |
flag cell |
Space |
open cell |
R |
restart |
Y |
confirm |
N |
decline |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.