Skip to content

olde-ducke/mine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published