Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/they4kman/gosweep
Go plays minesweeper, so you don't have to!
https://github.com/they4kman/gosweep
golang minesweeper
Last synced: about 1 month ago
JSON representation
Go plays minesweeper, so you don't have to!
- Host: GitHub
- URL: https://github.com/they4kman/gosweep
- Owner: theY4Kman
- Created: 2015-07-11T05:02:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-29T15:57:47.000Z (over 1 year ago)
- Last Synced: 2024-10-14T13:29:47.790Z (3 months ago)
- Topics: golang, minesweeper
- Language: Go
- Homepage:
- Size: 127 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gosweep
gosweep is a minesweeper game, written in Go using the [pixel game library](https://github.com/faiface/pixel), with an automatic player built-in
(Originally, this project began as a hack day project at GopherCon 2015; an Android minesweeper clone using [gomobile](http://godoc.org/golang.org/x/mobile/cmd/gomobile))
# auto-gosweep
To have Minesweeper played _for_ you, pass `--director`:
```bash
gosweep --director
```There are pretty colours showing the actions the director took. Red is a left click (reveal), blue is a right click (flag), and yellow means the director guessed — it chose one of the yellow cells at random.
![Director Example](https://user-images.githubusercontent.com/33840/95430181-6350bc80-0919-11eb-993d-d0ce904adacd.gif)
Since the game and director are written in Go, it's FAST, and can handle large boards pretty well.
![Director Example with Large Board](https://user-images.githubusercontent.com/33840/95430708-21744600-091a-11eb-9fa3-fccb4653529c.gif)
... and that speed is artificially limited. With the 25ms tickrate removed, games are near-instantaneous
![Director Example with No Artificial Tick Rate](https://user-images.githubusercontent.com/33840/95431579-63ea5280-091b-11eb-8f17-cb3edfb89e4b.gif)