966 B
966 B
Terminal Minesweeper
A Minesweeper game that runs in your terminal using the gocui library.
Features
- Classic Minesweeper gameplay
- Colorful terminal interface with emoji characters
- Mouse support for opening cells and placing flags
- First-click safety (you'll never hit a mine on your first click)
How to Install and Run
Prerequisites
- Go 1.22 or later (for math/rand/v2)
- Git
Installation
-
Clone the repository:
git clone https://gitea.boner.be/bdnugget/minesweeper cd terminal-minesweeper
-
Install dependencies:
go mod tidy
Running the Game
Simply run:
go run main.go
How to Play
- Left-click: Open a cell
- Right-click: Place/remove a flag
- 'R' key: Restart the game (broken for now lol)
- Ctrl+C: Quit the game
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.