Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrelam/minesweeper
:zap: Blazingly fast co-op minesweeper :bomb:
https://github.com/alexandrelam/minesweeper
Last synced: 2 days ago
JSON representation
:zap: Blazingly fast co-op minesweeper :bomb:
- Host: GitHub
- URL: https://github.com/alexandrelam/minesweeper
- Owner: alexandrelam
- License: mit
- Created: 2022-12-21T18:43:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T04:41:45.000Z (about 2 years ago)
- Last Synced: 2024-11-11T06:47:33.585Z (2 months ago)
- Language: Go
- Homepage:
- Size: 139 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :zap: Blazingly fast CO-OP Minesweeper :bomb:
![Capture d’écran 2022-12-25 011617](https://user-images.githubusercontent.com/25727549/209458735-7431f146-47da-4a90-ace0-4664db7df498.png)
![Capture d’écran 2022-12-25 011706](https://user-images.githubusercontent.com/25727549/209458754-86648c95-c657-4e9b-ba12-5487d516d98d.png)
# message
## request
```json
{
"action": "CREATE_GAME"
}
``````json
{
"action": "DIG", // FLAG, UNFLAG
"row": "0",
"column": "0"
}
```action: CREATE_GAME, FLAG, UNFLAG, DIG
## response
```json
{
"type": "UPDATE_BOARD",
"data": "board[][]"
}{
"type": "CONNECTED_USERS",
"data": "users[]"
}{
"type": "USER_MOUSE",
"data": {
"id": "id",
"name": "name",
"mouseX": 0,
"mouseY": 0
}
}
```a update always contains a type and a data field
## Todo
- [ ] fix game create bomb
- [ ] random board