Skip to content
ailedt edited this page Feb 1, 2017 · 10 revisions

To see sample message output, please refer to: https://github.com/webplatformz/challenge/wiki/Sample-Output

To see the message content please refer to https://github.com/webplatformz/challenge/blob/master/shared/messages/messages.js and https://github.com/webplatformz/challenge/blob/master/shared/messages/messageType.js

Session handling

  • Client connects to server
  • REQUEST_PLAYER_NAME from server to client
  • CHOOSE_PLAYER_NAME from client to server
  • REQUEST_SESSION_CHOICE from server to client
  • CHOOSE_SESSION from client to server

Game

  • BROADCAST_TEAMS to all 4 players (array of teams with array of players in it)
  • DEAL_CARDS to all 4 players (each player receives 9 cards)
  • REQUEST_TRUMPF to player 0
  • CHOOSE_TRUMPF from player 0 to Server
  • BROADCAST_TRUMPF to all four players
  • REQUEST_CARD to all four players, one by one, players respond by CHOOSE_CARD
  • BROADCAST_STICH to all four players
  • REQUEST_CARD starting from player that made the "Stich"
  • and so forth until all cards are played
  • BROADCAST_GAME_FINISHED
  • then more games are played until one team has 2500 points
  • BROADCAST_WINNER_TEAM
  • BROADCAST_TOURNAMENT_RANKING_TABLE
Clone this wiki locally