TEG protocol ChangeLog ---------------------- s: string i: integer b: bool (represented in '0' and '1') 'token' is between single quotes Some tokens has a separator *** version 5 *** client server ----------------------------- Scores [NEW] ( to view the high scores ) ====== request: response: 'scores' 'scores=s1,i2,s3,i4,b5\s1,i2,s3,i4,b5....' s1= name i2=color s3=date i4=score b5=is human the separator is '\' (and not '/') Status [MODIFIED] ( to view the status of the players ) ====== request: response: 'status' 'status=s1,i2,i3,i4,i5,i6,i7,i8,b9,b10,s11/...' s1=name i2=color i3=score i4=player number i5=status i6=total countries, i7=total armies i8=total cards b9=started the turn ? b10=am I human ? s11=internet address the separator is '/' Message [MODIFIED] ( to send a message to all the players ) ======= request: response: 'msg="any chars but quotes"' idem (The client MUST forbid quotes character in the message) Enum cards [NEW] (to know all the cards I have, usefull after a re-join) ========== request: response: 'enum_cards' 'enum_cards=i1:b1,i2:b2,...' i1=country number b2=occupied or not (0 or 1) Client version [NEW] (Send the server the client version) ============== request: 'client_version=a description' This message SHOULD be sent after the PVERSION (protocol version) *** version 4 *** client server ----------------------------- Game in progress [NEW] (the server tells the client that a game is in progress) ================ request: response: 'game_in_progess' Kick [NEW] (the server kicks a player) ==== request: response: 'kick=s1' s1=name of the kicked player Message [MODIFIED ??] ( to send a message to all the players ) ======= request: response: 'msg=COMPLETE???' idem *** version 3 *** TODO: Complete! *** version 2 *** TODO: Complete! *** version 1 *** TODO: Complete! riq.