min
github.com/guilhermebr/minesweeper
go get github.com/guilhermebr/minesweeper
min

github.com/guilhermebr/minesweeper

Go implementation of Minesweeper game API

go get github.com/guilhermebr/minesweeper
Readme

Minesweeper

Go(lang) implementation of Minesweeper game API

More about the game: https://en.wikipedia.org/wiki/Minesweeper_(video_game)

Build

  $ go build -o build/minesweeper ./cmd

Run

  $ ./build/minesweeper

Build and Run with Docker

  $ sh run-docker.sh

Create a New Game

  $ curl -i -X POST '127.0.0.1:3000/game' -d '{"name": "teste", "rows": 10, "cols": 8, "mines": 20}'

Start the game

  $ curl -i -X POST '127.0.0.1:3000/game/teste/start'

Play

  $ curl -i -X POST '127.0.0.1:3000/game/teste/click' -d '{"row": 1,"col":1}'

Run tests

  $ go clean  $(go list ./... | grep -v /vendor/)
  $ go test  $(go list ./... | grep -v /vendor/) -v

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20170821144246-a38f38257eb0
2yrs ago
No alternatives found
No tutorials found
Add a tutorial