Formal Specification
Tablut (Sámi Tafl board game) — Formal Specification
Sweden · board-abstract · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 4
# Tablut — AI-optimized specification
## General idea
A classic Sámi Tafl board game documented by Carl Linnaeus in 1732, played on a 9×9 grid. Two players command asymmetric forces: the Defending player controls a central King (*Gonagas*) and 8 Swedish warriors striving to escort the King to any edge square of the board, while the Attacking player commands 16 Muscovite warriors encircling the perimeter striving to trap and capture the King. The game is fully deterministic with custodial captures and perfect information.
## Formal model
- **Abstraction taken:** None — the traditional game is already a complete, discrete, turn-based abstract strategy system. Formalization removes historical rule ambiguities regarding open-field King capture and standardizes threefold-repetition draws.
- **Player/agent count:** 2 players ( and ).
- **Turn model:** Strictly alternating sequential turns; Attacker moves first.
## Formal rules
R1. **Board Topology & Coordinates:**
- The board is a square grid with coordinates .
- The central square is designated the Throne (*Konakis*).
- The edge perimeter consists of all squares where or .
R2. **Initial Setup:**
- The King () is placed on the Throne .
- 8 Defending pieces () occupy the cross arms: .
- 16 Attacking pieces () occupy four edge groups:
- North: .
- South: .
- West: .
- East: .
R3. **Turn Order:**
- Attacker () moves first. Players strictly alternate moving one piece per turn.
R4. **Movement Mechanics:**
- Any piece (King, Defender, or Attacker) moves orthogonally (horizontally or vertically) any number of unobstructed vacant squares (like a rook in chess).
- No piece may jump over another piece.
- The Throne square may only be entered by the King. Attackers and Defenders cannot land on or pass through the Throne [gap-fill].
R5. **Custodial Capture:**
- A Defender or Attacker is captured and immediately removed when an opponent's move sandwiches it between two opposing pieces along a straight orthogonal line.
- Voluntary Entry: A piece that voluntarily steps between two enemy pieces is safe and not captured.
- Hostile Throne: The vacant Throne square acts as an enemy piece for custodial capture against both Attackers and Defenders.
R6. **King Capture Conditions:**
- On the Throne: The King is captured if surrounded on all 4 orthogonal sides by 4 Attackers.
- Adjacent to the Throne: The King is captured if surrounded on 3 open sides by Attackers, with the 4th side blocked by the Throne.
- In the Open Field: [gap-fill] The King is captured when surrounded on 4 orthogonal sides by 4 Attackers (or by 3 Attackers against the board edge), adhering to Linnaeus's original 1732 manuscript rule.
R7. **Defender Win Condition:**
- The Defender wins immediately if the King safely steps onto any square on the outer perimeter ( or ).
R8. **Attacker Win Condition:**
- The Attacker wins immediately if the King is captured per R6, or if the Defender has no legal moves remaining on their turn.
R9. **Draw Condition:**
- [gap-fill] Threefold Repetition: If the identical board configuration recurs 3 times with the same player to move, the game is declared a draw.
- Move Limit: If 100 plies elapse without a piece capture or King progress toward the edge, the game is drawn [gap-fill].
## Edge cases
- Tie at the end condition: Not applicable — victory conditions are mutually exclusive.
- A player with no legal move: If a player has no legal moves on their turn, that player immediately loses (stalemate defeat).
- Repetition / cycles: Resolved by R9 via threefold repetition and the 100-ply ceiling.
- Simultaneous claims on the same resource or position: Not applicable — squares hold at most one piece; turns are sequential.
- Player elimination mid-round: Individual pieces are removed on capture; player elimination does not occur in 1v1.
- Resource exhaustion (pieces, tokens, space, time): Pieces decrease monotonically; time bounded by 100-ply ceiling.
- Termination guarantee: Captures permanently reduce piece count, King edge escape terminates on detection, and cycles are bounded by threefold repetition.
## State representation
- **Persistent state:**
- `board`: array of cell contents .
- `current_player`: `ATTACKER` or `DEFENDER`.
- `piece_counts`: `{defenders: int, attackers: int}`.
- `plies_since_progress`: integer.
- `history_hashes`: list of 64-bit Zobrist hashes.
- **Per-turn ephemeral state:**
- `last_move`: `(from_x, from_y) -> (to_x, to_y)`.
- `captures`: list of coordinates of captured pieces.
- **Observable information:**
- Fully observable: Perfect information — entire board state is visible to both players.
## Action space
- `move(from_pos, to_pos)`: move piece from to . Preconditions: piece belongs to active player, orthogonal straight line, path unobstructed, target vacant, target unless piece is King.
## Playability notes
- Single-player-vs-AI: Engine-ready — highly studied game in computational ludology; exceptionally well suited for alpha-beta minimax search with bitboard state representations.
- Group games (n>4): Not applicable — strictly a 1v1 duel.
- Physical-skill games: Not applicable — purely abstract strategy.
- What is lost in the adaptation: The tactile feel of embroidered reindeer-skin boards, horn/bone pieces, and Carl Linnaeus's 18th-century botanical Latin diary notes.
## Implementation hints
Very high engine readiness. The board can be represented via three 128-bit bitboards (or 64-bit arrays). Branching factor is typically . First milestone: implement bitboard orthogonal ray attacks, custodial sandwich captures, and verify that the King stepping on triggers an immediate Defender win.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Tablut (Sámi Tafl board game) (Sweden). (n.d.). Games of Countries. https://gamesofcountries.com/games/se-sweden/tablut
@misc{gamesofcountries-se-sweden-tablut,
title = {Tablut (Sámi Tafl board game) (Sweden)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/se-sweden/tablut}
}