Add screenshot, README and LICENSE
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# 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
|
||||
|
||||
1. Clone the repository:
|
||||
```
|
||||
git clone https://gitea.boner.be/bdnugget/minesweeper
|
||||
cd terminal-minesweeper
|
||||
```
|
||||
|
||||
2. 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](LICENSE) file for details.
|
||||
Reference in New Issue
Block a user