Skip to content

Commit 97121d7

Browse files
balegasclaude
andcommitted
blog: restore how it works section on territory wars demo page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 13156a8 commit 97121d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

website/demos/territory-wars.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ Multiplayer territory capture game built with [Yjs](https://yjs.dev) CRDTs on [D
1919

2020
<DemoCTAs :demo="$frontmatter" />
2121

22+
## How it works
23+
24+
Built with [`y-durable-streams`](https://www.npmjs.com/package/@durable-streams/y-durable-streams) on [Durable&nbsp;Streams](/primitives/durable-streams). Game state is managed via [StreamDB](/blog/2026/03/26/stream-db). The game board is a Yjs Y.Map where each cell is a last-writer-wins register. Players move to claim cells and enclose territory. Player presence is tracked via ephemeral awareness streams with built-in TTL that garbage-collects stale state from disconnected&nbsp;players.
25+
2226
<figure>
2327
<div class="embed-container">
2428
<YoutubeEmbed video-id="r3i25BGom0s" />
2529
</div>
2630
</figure>
27-
28-
<DemoEmbed :demo="$frontmatter" />

0 commit comments

Comments
 (0)