This page shows our game management mechanism. If you're new to our diagram architecture, you can click to the link below.
sequenceDiagram
participant 1 as Player 1
participant 2 as Player 2
participant 3 as Player 3
participant 4 as Player 4
participant R as Room
participant G as Game
1->>R: Creates room 1
Note right of R: room1: [player1]
2->>R: Login to Room 1
Note right of R: room1: [player1,player2]
3->>R: Login to Room 1
Note right of R: room1: [player1,player2,player3]
4->>R: Login to Room 1
Note right of R: room1: [player1,player2,player3,player4]
1->>G: Starts game
Note left of G: everybody gets ten white cards
Note right of G: first round --cardczar=player1
Note over 1: Play the first black card
2->>G: Picks a white answer card to make a funny combination
3->>G: Picks a white answer card to make a funny combination
4->>G: Picks a white answer card to make a funny combination
Note right of G: final of first round --cardczar reads
1->>G: Chose the best answer
Note right of G: second round