You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alejandro U. Alvarez edited this page Jul 25, 2018
·
1 revision
Online message protocol
Description of the message protocol.
init
This means that the client should get ready for a new game. After this the server will either request a new move or send an opponent move (the server will always coordinate who begins each game, so the client should just wait until it's asked)
move
Only sent in the first iteration, to indicate who begins. The server will be expecting a move from the player. Moves are sent in the following format:
This indicates what the opponent has done, in the same format as moves requested from the player: {big board.x},{big board.y};{small board.x},{small board.y}.
After receiving this, the player should reply directly with his move.