Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.13 KB

CONTRACTS.md

File metadata and controls

29 lines (23 loc) · 1.13 KB

Players can change nicknames on top of an automatically generated (string) username.

Backend → Frontend

  • connect_to_server (shares room name?)
  • update_board (gives the boundary board)
  • update_robots (gives robot positions at start or after simulating a set of moves)
  • update_goals (gives all goal positions and the one active goal)
  • update_scoreboard (gives a list of all room users and their scores)
  • update_user (gives information about self user)
  • switch_to_countdown (signals a solution has been found)
  • switch_to_timer (signals a new round beginning)
  • clear_moves_queue (forces clear move (e.g. at new round))
  • player_chat_new_message (player chat to all)
  • system_chat_new_message (system chat to all)
  • system_chat_to_player_new_message (system chat to individual player)
  • system_chat_svg (special system message containing a solution SVG url)

Frontend → Backend

  • ping
  • get_user (query if info is needed)
  • update_user (set new name, color)
  • update_chat (send a message)
  • game_action
    • submit_movelist
    • new_game (fe needed)