Skip to content

alexandrelam/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Blazingly fast CO-OP Minesweeper 💣

Capture d’écran 2022-12-25 011617

Capture d’écran 2022-12-25 011706

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

About

⚡ Blazingly fast co-op minesweeper 💣

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published