The same library, four ways to wire a session. Pick a connectivity and play.
Mesh, replicated. Both devices hold the same board and take turns writing moves. Losing the host would still leave a working connection โ there is only one.
Mesh, authoritative. Every phone holds a channel to every other phone. The host deals in private โ the odd one out is never sent the word.
Star, authoritative. Joiners dial only the host. Hole cards are a routing fact: each seat reads hand:{self} and nothing else private.
Star, authoritative, and never locked. Phones join all evening; the tally goes to whoever holds the asking seat and to nobody else, so nothing can bandwagon.
Mesh, authoritative โ not for secrecy, for physics. Two devices simulating one bouncing ball drift apart within seconds. Paddle and ball ride an unreliable channel at 30Hz.
Multiplayer sessions over WebRTC โ no game server, no game logic off the players' devices
Mesh or star connectivity; replicated, arbitrated or authoritative reduction
Signaling introduces peers, then gets out of the way
TypeScript, with the published package separate from these demos
Party games, puzzle boxes, and other experiments live on my portfolio.
more games ยท source ยท kankawabata.com