fabienjuif / subterra

Not finished clone of subterra board game
https://pedantic-lalande-d5e881.netlify.com/
0 stars 0 forks source link

create an API #53

Closed fabienjuif closed 4 years ago

fabienjuif commented 4 years ago

Maybe on socket First step, the server will not check for cheaters

pseudo code

const { server } = require('socket-io')

server.on('connect', socket => {
  socket.on('dispatch', action => {
    server.emit('dispatch', action)
  })
})
fabienjuif commented 4 years ago

1 instance per game?

fabienjuif commented 4 years ago

starting with 1 server for 1 game. the client have to write the server IP in an input after he is authenticated

fabienjuif commented 4 years ago

create a sequence diagram for this game server