Skip to content

Technology

One language, one engine, every client

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.

From rules to running engine

  1. 01BGDL rulesOne text description of the game
  2. 02CheckerSchema, references, types and size limits
  3. 03CompilerA deterministic .NET assembly
  4. 04Seeded test gamesPlayed before a version goes live
  5. 05Server and browserThe same engine, everywhere

The Board Game Design Language

A standard way to describe a board game

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.

How BGDL describes a game

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:

game
The game's name, player count and seats: who sits where, in teams or sides
boards
Grids, hex maps, graphs of places and routes, tracks and slot layouts
components
Pieces, cards, tiles and tokens, with typed properties
data
Card lists and other component tables, as rows a designer can edit
zones
Where components live, and who may see them: everyone, only their owner, only the top card, or no one
state
Scores, resources, tracks and any other value the game keeps
flow
Phases, rounds and turns, simultaneous turns, and windows for reactions
actions
What a player may do: each choice they make, and the effects that follow
triggers
Rules that fire on events, such as when a card is played or a track is reached
end
How the game ends, how it's scored, and how ties break
tablut.rules.yaml
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.

What one description gives you

Because the rules are data, not code, everything else in Arbitas can be built from them.

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.

Rules that are checked, not just written

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.

Your rulebook, tested for gaps

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.

Playable without writing a client

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.

Bots for every game

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.

Fair hidden information

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 variants that compose

Expansions and options are separate packages over a base game. They combine predictably, and every combination a game allows can be checked automatically.

Readable, reviewable, yours

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.

Stable to build on

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.

Expansions, variants and options

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 →
512of 512 combinations of one game's nine expansion packages compose and pass the checker
16of 16 combinations of another game's four expansions, too

Proven on real games

BGDL was designed against the most demanding board games there are, before it was frozen, and every release is held to them.

  • Six heavyweight modern board games, from engine builders to economic and route-building games, passed the gate that froze the language as BGDL 1.0
  • More than a dozen proof games, most from BoardGameGeek's top 50, were written in it to test its reach, from asymmetric wargames to cooperative and solo games
  • Classic games test it too: chess matches published move-generation counts, alongside checkers, backgammon, Reversi, mancala, Nine Men's Morris and a trick-taking card game
  • Expansions compose: 16 of 16 combinations for one game's four expansions, and 512 of 512 for another's nine packages

Where it stops, for now

A standard is only useful if it's honest about its edges.

  • BGDL describes turn-based play, including simultaneous turns. Real-time play is experimental, and dexterity and physics games are out of scope.
  • A few rules still reach beyond it, such as acting at any moment, even mid-move. Workarounds or sandboxed C# hooks cover them for now, and BGDL 1.x is closing the gaps.
  • In the most asymmetric games, some faction-specific mechanics still rely on hooks while the language grows.

How the engine runs it

Deterministic by construction

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.

Server-authoritative, with prediction

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.

Hidden information stays hidden

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.

Matches are logs

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.

Tested like a compiler

The compiler is tested against the interpreter on every conformance game, recorded real games replay to the same results, and mutation testing runs nightly.

Versions are fixed

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.

One engine contract

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

CreateInitial
Sets up a match from its options and seed
GetLegalActions
Lists the moves a seat may make now
GetChoices
Walks a move's choices one step at a time
Apply
Plays a move and returns the new state
Project
Shows a seat only what it may see
Determinize
Samples hidden information a seat can't see, for bots
Evaluate
Scores a position, from the game's heuristic
Hash
Fingerprints the state, to check client and server agree

Run on managed cloud infrastructure

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.

Questions

What is the Board Game Design Language (BGDL)?
BGDL is a standard, text-based way to describe a board game's rules: its components, who can see what, how turns flow, what players may do and how the game ends. It's YAML checked against a published JSON Schema, with typed expressions for conditions and formulas.
What is a deterministic game engine, and why does it matter?
A deterministic engine always produces the same state from the same moves and seed, on any machine. It means the server and every player's device agree on the game, any match can be replayed exactly, and bugs can be reproduced.
How does Arbitas stop players cheating with hidden information?
Each player's device only ever receives what that seat may see, derived from the rules, never the full game state. Spectators see the public view, and bots plan from samples of what their seat could be facing, so no one can read hidden cards.
Are my BGDL rules locked into Arbitas?
No. BGDL files are plain text in YAML, versioned like code. Your rules, data tables and match logs belong to you.
What happens to running matches when I change the rules?
Each published version is fixed and content-hashed, and every match stays on the version it started with. New versions go to a testing channel first and go live when you promote them.
Arbitas

Describe your game in BGDL

Start free and write your first ruleset, or book a demo and we'll walk through your game's rules in BGDL with you.