Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connect with TCP
- Server ports:
- 5800 WHITE player
- 5801 BLACK player
- Data from client each turn:
- {
- "from": <column letter><row index+1>,
- "to": <column letter><row index+1>,
- "turn": <player color>
- }
- Data from server each turn:
- {
- "board": <matrix of strings representing the new board state - each is either "BLACK","WHITE","KING" or "EMPTY">
- "turn": <'color' of the player that has to move>
- }
- To initially connect to the server, send the NAME OF THE PLAYER on the corresponding port (5800 or 5801)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement