Games

Every game here is a YAML model: the rules as data. Our own and public-domain games are published in full and can be played. For commercial games we show only the rules structure, until the publisher gives permission. The bar shows how much of each model runs.

Games

Existing games, from chess to campaign dungeon crawlers.

Chess

Full chess on an 8×8 board: castling, en passant, promotion, check and mate. Move generation is checked against standard perft counts.

2 players100% executable

The Lord of the Rings LCG

Fantasy Flight Games

Cooperative card game against a quest deck. The core-set scenario is modelled completely, including every card used, and plays end to end.

1–2 players100% executablestructure only
Fan model of a game by Fantasy Flight Games: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Gloomhaven

Cephalofair Games

Tactical dungeon crawler on a hex map, wrapped in a campaign. The round structure, initiative, monster turns and the campaign loop are modelled; most card abilities are still code.

1–4 players21% executablestructure only
Fan model of a game by Cephalofair Games: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Arkham Horror: The Card Game

Fantasy Flight Games

Cooperative investigation with an agenda and an act deck, chaos-bag tests and reaction windows. The phase structure and timing windows are modelled.

1–4 players26% executablestructure only
Fan model of a game by Fantasy Flight Games: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Aeon's End

Indie Boards & Cards

Cooperative deck-builder against a nemesis, with a shuffled turn-order deck and decks that are never shuffled. The turn structure is modelled.

1–4 players19% executablestructure only
Fan model of a game by Indie Boards & Cards: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Too Many Bones

Chip Theory Games

Dice-driven adventure: encounters by day, battles on a grid, skill trees per character. The day loop and battle rounds are modelled, with open questions listed.

1–4 players12% executablestructure only
Fan model of a game by Chip Theory Games: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Codenames

Czech Games Edition

Word-association game for two teams. The rules are simple to model; the clue giving needs a language agent, which the model marks as such.

2 teams32% executablestructure only
Fan model of a game by Czech Games Edition: only the rules structure is shown, in our own words. Cards, scenarios and play are not published without the publisher's permission. Not affiliated with or endorsed by the publisher.

Kuhn poker

The smallest real poker game: three cards, one bet. Good for testing hidden information and strategies.

2 players100% executable

Eight-ball (pool)

Pool with a skill model: each shot succeeds with a probability, so the rules and the luck are separate.

2 players96% executable

Tic-tac-toe

The classic three in a row. The shortest complete model and a good first read.

2 players100% executable

Examples

Small games written to show one feature of the language each. Good to read before you write your own.

Hex skirmish (dungeon on a hex map)

A small skirmish on a hex map with walls, line of sight, movement and ranged attacks. Shows the board geometry functions.

1 player vs monsters100% executable

Pig (roll until you stop)

Roll a die until you stop or roll a one. Shows chance, a loop and a simple tactic.

2 players100% executable

Higher or lower

Guess whether the next card is higher or lower. Shows a deck, drawing and hidden cards.

1 player100% executable

Ambush (windows and stack)

Reaction windows and a stack: a played card can be answered before it resolves.

2 players100% executable

Auction

A simple auction with simultaneous sealed bids.

3 players100% executable

Neighbours

Placing pieces on a grid and scoring neighbours. Shows the board and adjacency.

2 players100% executable

Expedition (campaign)

Several scenarios in a row with state that carries over: a minimal campaign.

1 player100% executable

Tabletwin models how games work. Game names belong to their owners and are used only to say which game a model describes. Rules are described in our own words; card texts are paraphrased and no original artwork is used. Rights holders who want a model removed can contact us and we will take it down.