Open Chadtech opened 4 years ago
One a game is created, it is in Lobby(LobbyModel) mode. Players need to be able to join games.
Lobby(LobbyModel)
shared/src..
join_game
Request
Response
game_id
player_name
get_players
Game
host + opponents
One a game is created, it is in
Lobby(LobbyModel)
mode. Players need to be able to join games.shared/src..
make ajoin_game
module, with aRequest
andResponse
.Request
should take agame_id
and aplayer_name
.Response
should contain a list of the names of the players in the game so far.get_players
function onGame
, which returnshost + opponents
.