Write the rules once
One description runs the server, the browser and the Unity client, so every player plays exactly the same game. There's no second copy of the rules to keep in step.
Technology
Arbitas describes each game in the Board Game Design Language, then compiles that description into one deterministic engine that runs, unchanged, on the server and in the browser.
The Board Game Design Language
A rulebook is written for people. It leans on examples, pictures and common sense, and it leaves gaps that players settle at the table. Software can't settle anything: until now, every digital edition has meant rewriting a game's rules as code, once for each platform, with each copy drifting from the others.
The Board Game Design Language (BGDL) is a single, precise description of a game's rules: its components and where they live, what each player can see, how turns flow, what players may do and how the game ends. It's one shared vocabulary for every turn-based board game, from chess to the heaviest modern designs, so one file is the game: checked, compiled and played everywhere the same way.
From rulebook to game: four of Tablut's rules become BGDL, and the game sets itself up and plays.
A BGDL file is YAML, checked against a published JSON Schema, with typed C#-like expressions for conditions and formulas. Every game is built from the same blocks:
zones:
square: { kind: cell, board: board, of: piece, capacity: 1, visibility: public }
captured: { kind: set, of: piece, perSeat: true, visibility: public }
# …
flow:
- phase: play
turns:
order: { from: "seat(swedes)", direction: clockwise }
budget: 1
actions: [move]
onNoLegalAction:
- endGame: { winner: "opponent(activeSeat)", reason: no legal move }Tablut's board squares hold one piece each, and captured pieces are public. The Swedes move first, one move a turn, and a side with no legal move loses.
Because the rules are data, not code, everything else in Arbitas can be built from them.
One description runs the server, the browser and the Unity client, so every player plays exactly the same game. There's no second copy of the rules to keep in step.
BGDL is precise enough to check. Missing references and wrong types are caught on save, with the line they're on, and seeded test games run before a version is published.
Turning a rulebook into BGDL forces every rule to be stated exactly. Where the rulebook is silent or ambiguous, the import asks you, and the answers become part of the rules.
Because actions and choices are declared, any game in BGDL can be played in the hosted web player from day one, with grid boards drawn automatically and a full button layer for keyboards and screen readers.
A search bot can play any game described in BGDL, from the rules alone, seeing only what its seat may see. A game can add its own strategy hints, in BGDL too.
Every zone declares who may see it, so each player's view is derived from the rules. Hidden cards stay hidden, from players, spectators and bots alike.
Expansions and options are separate packages over a base game. They combine predictably, and every combination a game allows can be checked automatically.
BGDL is plain text in YAML, with a published JSON Schema. Changes show up as line-by-line differences you can review, version and keep anywhere. Your rules are never locked inside our code.
The language is frozen at BGDL 1.0. Every 1.x release only adds, so a game written today keeps working; a breaking change would be 2.0.
BGDL treats a game's growth as part of the language. Options change one value, variants switch official alternate rules, and expansions are separate, versioned packages that add, replace or remove rules on top of a base game. Arbitas composes them into one ruleset before a match starts, under strict rules: nothing is overwritten by accident, clashes are refused, and the same selection always gives the same game.
How expansions work →BGDL was designed against the most demanding board games there are, before it was frozen, and every release is held to them.
A standard is only useful if it's honest about its edges.
Traditional games the engine is tested against, each in a single BGDL file: see how it's built, then read the whole thing.
Rules have no clocks, threads, floating point or unordered iteration. Integers are 64-bit with overflow as an error, every sort is stable, and randomness comes from the match's seed. The same moves always give the same state, on any machine.
The server is the referee: it checks every move against the rules. The web player runs the same engine in a Web Worker to show a move at once, then reconciles with the server by comparing state hashes.
Each seat receives a projection of the state, never the state itself. Spectators see the public view, a round behind when a game hides anything. Bots plan from samples of what their seat could be facing, so they can't cheat either.
A match is its seed and the list of moves. Replaying the log reproduces the final state hash, which is how replays, reconnects and audits work. Each match commits to its seed before play begins.
The compiler is tested against the interpreter on every conformance game, recorded real games replay to the same results, and mutation testing runs nightly.
Every published version is content-hashed and never changes. A match is pinned to the version it started on, so you can publish version 2 while version 1 matches finish.
Every BGDL game, written by hand or imported, compiles to the same interface: a pure function over the match's log. Servers, browsers, bots and test tools all speak it.
The core library targets .NET Standard 2.1, so the engine also runs in Unity, including IL2CPP builds, and in the browser through WebAssembly.
IGameEngine
Arbitas runs on AWS. Live matches are held in memory by actors, while each match's log is stored durably as it happens, so a server restart never loses a game. Each builder's data and each player community are isolated from every other, down to the database's row-level security.
Start free and write your first ruleset, or book a demo and we'll walk through your game's rules in BGDL with you.