
๐ฎ Gaming ยท State Machine
The states of an online match on a game server: lobby, loading, in progress, pauses, reconnects and results.
Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.
Drawing diagramโฆ
State machine for a multiplayer game session: Allocated, Lobby waiting for players, Loading, Countdown, In Progress. A disconnected player causes Waiting For Reconnect (90 seconds); if they return the match resumes, otherwise a bot replaces them. Match end moves to Results, Submitting Results to the backend, then Shutdown. If too few players load the match is Cancelled.
stateDiagram-v2 [*] --> Allocated Allocated --> Lobby Lobby --> Loading: All players joined Lobby --> Cancelled: Timeout, too few players Loading --> Countdown: All loaded Countdown --> InProgress InProgress --> WaitingForReconnect: Player disconnected WaitingForReconnect --> InProgress: Reconnected WaitingForReconnect --> InProgress: 90s passed, bot replaces InProgress --> Results: Match ends Results --> SubmittingResults SubmittingResults --> Shutdown Cancelled --> Shutdown Shutdown --> [*]
A state diagram with 10 states and 12 transitions.
Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.
The backend for an online multiplayer game: player accounts, matchmaking, dedicated game servers, leaderboards and in-game purchases.
How a player gets into a match: joining the queue, skill-based matching, server allocation and connecting to the game server.
How match results turn into leaderboards and rankings: result events, anti-cheat checks, rating updates and cached leaderboards.
How an online game runs servers close to players worldwide: regional fleets, a global matchmaker, and central account and store services.
How an in-game purchase is completed safely: store purchase, receipt validation on the server, granting items and handling refunds.
Tables for an online game: players, characters, items, inventories, currencies, purchases and match history.