Skip to content

Playing Dune online in real time: how hands, moving pieces and secret cards work

What happens between your mouse and everyone else's screen on the dune.zone game table: the hands you see moving, a piece in flight, how every table stays in step, and how your cards stay yours.

Nov 3, 2026

Central419

Most of what makes the dune.zone game table feel live is invisible when it works. You see another player’s hand drift across the board. You see them lift a troop and set it down in Arrakeen. Your cards stay yours.

Here is what happens in between.

The dune.zone game table. Everything on it moves in real time.

One room for every game

Every game on dune.zone gets its own room. A room is a small program running on Cloudflare, a so-called Durable Object, with its own little database. There is exactly one of them per game, and it’s the only place that decides what the table looks like.

When you open a game, your browser keeps a connection open to that room, and so does everyone else’s. Anything you do travels to the room, the room checks it and saves it, and then it tells everyone what changed. The rest of the site, with its factions, rulebooks and accounts, lives in a different database. That one only knows which games exist and who is allowed in. It never sees a single move.

  1. 1 a move goes in
  2. 2 the room saves it
  3. 3 every screen gets the update
One room per game. A move goes in, gets saved, and goes out to every player and spectator at the table.

The hands you see moving

Every player’s pointer shows up on the table as a hand in their colour, with their picture below it. You can see someone hovering over the treachery deck, or pointing at the territory they’re about to ship into.

Your browser sends where your pointer is on the table, at most twenty times a second. The room gathers what arrives for a twentieth of a second and then sends one bundle to everybody. That keeps the traffic low, but it also means a hand arrives in little jumps. So each browser doesn’t put the hand straight where the last message said. It glides it there, closing most of the gap within a tenth of a second. Try it below, and turn the smoothing off to see what actually comes in over the wire.

Your screen move over the table

What Harkonnen sees about 100 ms later

Each dot is one position as it arrives: 20 a second at most, sent on in 50 ms batches.
Move over the left table. The dots on the right are the positions the other player receives; the hand glides between them.

When someone moves off the table, their hand goes away, and if their browser stops reporting for three seconds, the room removes it. Spectators can watch every hand, but they don’t send one of their own.

Picking up a piece

Two people can reach for the same troop at the same moment. On a real table your hands would bump. Online, the room has to decide.

When you press on a piece, your browser asks the room to start a carry. The room reserves that piece for you. If someone else grabs it a moment later, they get the message “Another player is carrying that piece.” While you carry it, your browser sends its position just like your pointer, and everyone sees the piece travel in your hand. Nothing is saved yet. Only when you let go does your browser send a drop. The room checks it, saves the new position, and then tells everyone where the piece landed.

Atreides browserRoomHarkonnen browser
  1. begin: troop
  2. reserved for Atreides
  3. carrying
  4. begin: same troop
  5. Another player is carrying that piece.
  6. posepose
  7. posepose
  8. posepose
  9. drop
  10. checked and saved
  11. updateupdate
Atreides and Harkonnen reach for the same troop. The room gives it to whoever asked first.

Drag a stack straight away and you take the top piece; hold it for a third of a second and you lift the whole stack. You can turn a card over while it’s in your hand, and everyone sees it flip. If your connection drops while you’re holding something, the piece goes back to where it was last saved.

Keeping every table in step

Every change the room saves gets a number, one higher than the last. When your browser sends a command, it mentions the number it last saw. If the table has changed since, say someone else just moved the storm, the room asks you to try again rather than apply your move to a table you haven’t seen. A few things, like drawing a card, adding spice to the board or editing your battle plan, are fine to do at the same time as someone else, so the room lets those through.

Going the other way, the room doesn’t send the whole table every time. When you first join, you get a full view. After that, each update only describes what changed since the last one the room sent your browser. Those updates are numbered too. If one ever goes missing, your browser notices the gap, asks for a fresh full view, and holds your next move until it arrives.

roomtable at 47sends each change as a patch
your browserat 47
  1. 41 → 42
  2. 42 → 43
  3. 44 → 45gap: 44 never came
  4. sent synccommands wait
  5. full view 45
  6. 45 → 46
  7. 46 → 47
applies each patch to the lastwaiting for a full view
First full view of a test table
24 KB
Dropping a stack of 100 cards, before
unchanged card data21 KB
Dropping a stack of 100 cards, now
only the piece id, position, rotation, zone and flip count
One cursor move
0.5 KB, then 0.4 KB without its unchanged snapshot
A full view to start, then small patches. A missing patch asks for a fresh full view. Sizes measured on a test table in September.

I measured this in September. A cursor move cost about half a kilobyte, and a quarter of that turned out to be leftovers that never changed, so they went. Dropping a big stack of a hundred cards used to send every card in the stack again. Now a saved move sends only which piece moved, where to and which way it faces.

How your cards stay yours

Dune is a game of secrets. Traitor cards, treachery cards, battle plans, the spice behind your shield. The easiest way to build a game table would be to send everyone the whole table and simply not draw the parts they shouldn’t see. But then anyone who opens their browser’s developer tools could read your hand.

So the room never sends a secret to someone who isn’t allowed to see it. Before anything leaves, it makes a separate copy of the table for each seat. Your copy has your cards with their faces. The copies for everyone else say how many treachery cards you hold, because the rules make that public, and nothing more. A face-down card travels as its back only. Spectators get the public table and nothing else.

In the room

Atreides handLasguncard-882a…Shieldcard-2f73…Karamacard-bde1…
Harkonnen handChaumascard-8bef…Crysknifein plancard-ab18…Balisetcard-12ad…Truthtrancecard-dafd…
Treachery deckWeirding Waycard-0c2c…Treacherycard-efc9…Treacherycard-1db6…peeked by Atreides
Harkonnen battle planCrysknifecard-ab18…

Sent to Atreides

Atreides handLasgunShieldKarama
Harkonnen hand4 cards
Treachery deckWeirding Waycard-0c2c…Treacherycard-efc9…Treacherycard-1db6…peeked by Atreides
Harkonnen battle planuntil the reveal
One table in the room, three different copies on the way out. Switch seats to compare.

Hiding the face isn’t enough on its own. If a card kept the same name on the wire, you could follow it: that’s the card Harkonnen drew, and now it’s on top of the discard pile. So every card gets a scrambled name for each game, and shuffling a deck gives all of its cards new ones. Peeking works the same way. When you look at the top card of a deck, only you get its face, and everyone else sees that you peeked. Battle plans stay in the room until the reveal, and a card you put in a plan keeps counting in your hand until then, so even your opponent’s card count can’t give away that you’re planning to use it.

How it got here

The game table started life as its own project, Dune Play, next to dune.zone. Early plans kept the table in the same database as the rest of the site. Dune Play’s design then settled on one Durable Object per game, and that is still how it works today.

In September the table moved into dune.zone, and from there it grew one piece at a time: first a shared table, then batched movement and numbered updates, private spice, battles, smaller updates, and later the hidden zone beside your hand and public card counts. Most recently, a room that has gone quiet goes to sleep while its players think, and wakes the moment someone moves.

  1. Before Sept 2026Dune Play is its own project. Early plans keep the table in the site’s database; its design record then picks one Durable Object per game.
  2. 8 Sept 2026The table moves into dune.zone, and signed-in players share a hosted table the same day.
  3. 13 SeptMovement is batched and updates carry revision numbers. Private faction spice banks.
  4. 19 SeptEvery drag shares one pointer session. Traffic measured; motion updates lose their unchanged snapshot, saved moves send only what moved.
  5. 10 to 11 OctPublic Treachery counts; flip a piece while carrying it; a private hidden zone beside your hand; reveal part of a battle plan early.
  6. 18 OctSigned seat passes let the room admit players without asking the site’s database every 90 seconds.
  7. 26 OctA quiet room hibernates while its players think.
From its own project to the table on dune.zone today.

Other tables, other choices

I play on Tabletop Simulator and on Treachery.Online, and both have their own good answer to the same problem.

In Tabletop Simulator, the host’s computer runs the table, physics and all, and everyone else follows along. Cards in your hand zone are hidden from the other seats. Anything you can put on a table, you can play with.

In Treachery.Online, as its README describes, every browser runs the whole game, rules included. When you act, the server checks your move against its own copy of the game and passes it on to everyone, and every copy plays it out the same way. Because the rules run everywhere, the game can tell you exactly what you’re allowed to do.

dune.zone sits somewhere between the two. Like Tabletop Simulator, it’s a sandbox: the room doesn’t enforce the rules of Dune, so homebrew factions and new ideas work the day you make them. But like a server, the room is the referee for the things a table needs to be fair: who holds which piece, what got saved, and who is allowed to see what.

Pull up a chair

This post stayed at the level of what you see at the table. Underneath there is a lot more: how a saved game is stored, how the history lets you look back at any phase, and how the code is split between the room and your browser. Maybe that’s a deeper dive for a future post.

A game in Shipment and Movement, with the other players' hands on the table.