Live and asynchronous play
Arbitas hosts two kinds of match. Both use the same engine, the same log and the same protocol; they differ in how time works.
Live matches
Section titled “Live matches”Everyone plays at once, connected through the play WebSocket. A lobby’s host can give a live match a time control:
| Kind | How it works |
|---|---|
suddenDeath |
Each seat has a fixed amount of time for the whole match |
increment |
Fischer increment: a seat gains the bonus after each of its moves |
delay |
Simple delay: a seat’s clock waits for the bonus before it starts counting down |
bronsteinDelay |
Bronstein delay: a seat gets back the time it used on a move, up to the bonus |
Each seat starts with between 1 second and 3 hours, and the bonus is up to 3 minutes. The server runs the clocks from the times it logs moves, outside the engine; clients count down between updates from the clocks each update carries. A disconnected player’s clock keeps running. When a clock runs out, the server adds a “time expired” move to the log, and the game’s rules decide what happens.
Asynchronous matches
Section titled “Asynchronous matches”A match played over days. Each seat has a turn limit, 72 hours by default and anything from 1 hour to 14 days. When a player’s turn starts they’re notified, in the web player’s inbox, by web push and by email, as their notification settings allow, and they get a reminder when 75% of their time has gone. A seat whose deadline passes runs out of time, and the rules decide what that means, as with a live clock.
Between moves an asynchronous match rests on the server and wakes on the next move or deadline, so a match can run for weeks. Players see their matches, and whose turn it is, in the web player’s list of their games.
Reconnecting
Section titled “Reconnecting”Connections drop. A client that reconnects asks for the updates after the last version it has and gets them in order, so nothing is missed. In a live casual match, a bot stands in for a player who stays away past a 90-second grace period, and hands the seat back when they return. Every connection, spectators included, sees which seats’ players are connected and, while a grace period runs, when it ends.
Spectators and replays
Section titled “Spectators and replays”A lobby’s host can open a match to spectators: anyone signed in to the game can then watch it, from the web player’s watch list, up to 100 at a time. Spectators see the public view. In a game that hides anything, they watch a round behind, so they can’t pass hidden information to a player.
Once a match has ended, its players, and anyone in the game if it was open to spectators, can get its replay: the whole log and the revealed seed. Replays are kept for 24 months after a match last changed; after that only a summary that names no player is kept.
Real-time play isn’t in platform v1
Section titled “Real-time play isn’t in platform v1”Every game on Arbitas today is turn-based: at each moment the rules say which seats may act, and the server takes their
moves in turn. Simultaneous turns, where every seat commits a choice before they’re revealed, are supported. Games in
which every player acts at any moment and the server orders moves as they arrive (real-time play) aren’t: the rules
DSL’s realtime phase is experimental, and the engine refuses it. The platform is built so real-time play can be added
later without changing how games are written today.