$ ./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.
Regular minesweeper for terminal, written in go. Nothing special.
Representation | Description |
---|---|
. |
closed cell |
|
empty cell |
@ |
bomb |
% |
flag |
go build .
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 |