Design Report - SailGame/Codenames GitHub Wiki
Codenames
Protocol for game codenames between core side and provider side.
- When core sends a start game signal it should specify the hourglass, which is used to count the deadline when user chooses its word.
- For
UserOperation, it holdsLeaderWordwhich means leader says a keyword for its partner to guess andFollowerWordwhich stands for some follower chooses a word. NotifyMsgis a message that provider wants to send to client.- At Game starts, it will send the whole card table to every player. Besides, the player's role and current turn.
- When Game running, after every message is processed by provider, it sends the
ProcessStateMsgincluding current keyword or guess word and current state(which team wins or not) and next turn.
CardInfois the structure for 5x5 matrix of word, party pair.