> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Multiplayer game

> Lobbies, real-time state sync, leaderboards. ~75 minutes.

A real-time multiplayer game where players join via session code, see each other's actions live, and compete on a leaderboard.

**Time:** \~75 min. **Difficulty:** Advanced. **Backend:** Convex reactive sync.

<Note>
  Full walkthrough being written. See the [multiplayer prompting guide](/prompting/by-app-type/multiplayer) for the foundation prompt and [Real-time sync patterns](/architecture/realtime-sync-patterns) for the architecture.
</Note>

## Game shapes that work well

* Word games (anagrams, trivia)
* Drawing / guessing games
* Turn-based card games
* Real-time clicker / agar.io style

## Related

<CardGroup cols={3}>
  <Card title="Multiplayer prompting" icon="gamepad-2" href="/prompting/by-app-type/multiplayer">
    Foundation prompts.
  </Card>

  <Card title="Real-time sync patterns" icon="zap" href="/architecture/realtime-sync-patterns">
    Architecture.
  </Card>

  <Card title="Optimistic updates" icon="zap" href="/architecture/optimistic-updates">
    Sub-100ms feel.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.