go-sweep

command module
v0.0.0-...-06c0430 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

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!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL