minesweeper

module
v0.0.0-...-ecfdd64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2022 License: MIT

README

⚡ Blazingly fast CO-OP Minesweeper 💣

message

request

{
  "action": "CREATE_GAME"
}
{
  "action": "DIG", // FLAG, UNFLAG
  "row": "0",
  "column": "0"
}

action: CREATE_GAME, FLAG, UNFLAG, DIG

response

{
  "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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL