The Client is Connected Sucessfully
Attributes:
- to: str → Name of the Client to send the Command to
- name: str → The Name of the Client that is now connected
There is already a Client connected with the given name
The Client Receives new Cards
Attributes:
- to: str → Name of the Client to send the Command to
- cards: list[int] → The ID of the Cards you get
The Client receives the Names of the other Clients (Client is first)
Attributes:
- to: str → Name of the Client to send the Command to
- players: list[str] → The List of the Names of the Players (to is first)
The players that chose the highest card will get the ID of the highest one
Attributes:
- to: str → Name of the Client to send the Command to
- highest: int → The ID of the highest card
- showed: list[int] → List of two cards, the cards the other player showed you and your card you showed the other player
A Client has to play a card
Attributes:
- to: str → Name of the Client to send the Command to
- available: list[int] → The List of the Card_ids the Player can play
Send an update to the clients (something changed)
Attributes:
- to: str → Name of the Client to send the Command to
- played: list[CardBase] → The cards that have been played already
- last_played: str → The Player who played the last card
Send the name of the winner of the current turn
Attributes:
- to: str → Name of the Client to send the Command to
- winner: str → The name of the winner
- team1: dict → The names of the players in the team and the stats of the team
- team2: dict → The names of the players in the team and the stats of the team
Send the name of the winners to all the players
Attributes:
- to: str → Name of the Client to send the Command to
- winner: list[str] → The name of the winner
- team1: dict → The names of the players in the team and the stats of the team
- team2: dict → The names of the players in the team and the stats of the team
Send the name of the winners to all the players
Attributes:
- to: str → Name of the Client to send the Command to
- winner: list[str] → The names of the winner
- team1: dict → The names of the players in the team and the stats of the team
- team2: dict → The names of the players in the team and the stats of the team
The client sents the card to play to the server
Attributes:
- from: str → The Name of the Client the message comes from
- card: int → The Card the Client wants to play