Skip to content

maxpaulus43/go-sweep

Repository files navigation

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

  1. Make sure your $GOPATH is set
  2. go install github.com/maxpaulus43/go-sweep@latest
  3. go-sweep

Demo

emoji view

go-sweep gif

ascii view

go-sweep ascii gif

To Run

  1. go build .
  2. ./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!

Releases

No releases published

Packages

No packages published

Languages