Awesome
go-sweep: Minesweeper in your terminal
I needed to learn go in preparation for advent of code this year, so I thought I would make one of my favorite games using go! I also wanted to learn how to make terminal UI apps, so I opted to use the bubbletea tui framework to accomplish that. For future reference, this whole project took about 3 nights to accomplish.
To Install and Run
- Make sure your $GOPATH is set
go install github.com/maxpaulus43/go-sweep@latest
go-sweep
Demo
emoji view
ascii view
To Run
go build .
./go-sweep
Options
-w 30
: width of the minefield. default 30-h 30
: height of the minefield. default 30-n 90
: number of mines. default 99-e
: use emoji characters instead. by default, uses ascii to render cells
Please feel free to make an issue if you find any problems with the game! Sweep on!