Skip to main content
Formal Specification

Siamese Backgammon — Formal Specification

Thailand · board-race · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 3
# Ska Thai — AI-optimized specification ## General idea The traditional Siamese two-player race and tables board game belonging to the historical backgammon family. Two players roll two six-sided dice through a specialized wooden funnel ramp (*Kong-Khong*), racing 15 counters (*Luk Ska*) around a 24-point horseshoe track into a central bearing-off sanctuary (*Mueang*), capturing lone exposed enemy counters (*Luk Tiaw*) and establishing defensive two-piece camps (*Khai*). ## Formal model - **Abstraction taken:** None; the physical dice ramp (*Kong-Khong*) ensures fair uniform random dice rolls `(d1, d2) in {1..6} x {1..6}`. Board topology, point movements, captures to the bar, and bearing off are directly formalized as a discrete tables game. - **Player/agent count:** 2 players (Player 1: White, Player 2: Black). - **Turn model:** Sequential alternating turns with stochastic dice casting. ## Formal rules R1. Board Topology & Setup: - Played on a 24-point board (`points 1 to 24`), arranged in two 12-point halves divided by a central bar (*San-Kradan*), leading to the central sanctuary (*Mueang*). - [gap-fill] Initial Layout: Both players start with 15 counters off the board in the hand pool (entering via dice rolls into the opponent's home quadrant, points 1–6 for White, points 13–18 for Black), or positioned according to classical Siamese tables starting configurations. R2. Turn Structure & Dice Casting: - On a turn, the active player rolls two fair 6-sided dice `(d1, d2)`. - **Doubles (*Taem Khu*):** If `d1 == d2`, the player receives 4 movement steps of value `d1`, plus an immediate bonus roll after completing all moves. R3. Movement & Point Rules: - Counters move in a fixed forward direction around the 24-point track toward the player's home sector (points 19–24) and the *Mueang*. - A player may allocate rolled values to a single counter or split them among different legal counters. - **Camp (*Khai*):** A point occupied by 2 or more counters belonging to one player forms a "camp" (*Khai*). The opponent cannot land on or move through a point blocked by an enemy camp. R4. Captures (*Kin Luk Tiaw*): - If a point is occupied by exactly 1 enemy counter (a blot / *Luk Tiaw*), an incoming counter may land on that point to hit and capture the enemy piece. - The captured counter is placed on the central bar (*San-Kradan*). - A player with one or more counters on the bar must enter all bar counters into play using corresponding dice rolls before making any other legal move on the board. R5. Bearing Off (*Khao Mueang*): - A player may only begin bearing off counters into the *Mueang* once all 15 of their counters reside within their final home quadrant (points 19–24). - Counters are borne off by exact dice rolls matching the point distance to the *Mueang* (or by higher rolls if all points further away are vacant). R6. Victory Conditions: - The first player to bear off all 15 counters into the *Mueang* wins the game. - **Double Victory (*Ska-Khai*):** If a player bears off all 15 counters before the opponent has borne off a single counter, they are awarded a double victory (2 points). R7. [gap-fill] Pass Rule on Blocked Moves: If a player cannot legally play one or both dice values due to opponent camps or inability to enter from the bar, the unplayable moves are forfeited, and the turn passes. R8. [gap-fill] Maximum Turn Cap: If 200 full turns elapse without either player bearing off all counters, the game terminates as a draw (*Samoe*). ## Edge cases - Tie at the end condition: The first player to bear off all 15 counters wins immediately; ties are not possible under normal play. If the 200-turn cap is reached, a draw (*Samoe*) is recorded. - A player with no legal move: If all possible moves are blocked by enemy camps or entry restrictions, the player forfeits the turn (R7). - Repetition / cycles: Bounded by the monotonic forward movement of counters toward the home quadrant and the 200-turn safety cap. - Simultaneous claims on the same resource or position: Turns are strictly sequential; landing on a single enemy counter hits and captures it to the bar; landing on 2+ enemy counters is strictly illegal. - Player elimination mid-round; turn order repair: 2-player race; counters on the bar must re-enter prior to any board movement. - Resource exhaustion: Each player has exactly 15 counters, which are conserved across board, bar, and *Mueang*. - Termination guarantee: why the game provably ends: Positive probability of non-blocked bearing-off rolls and the 200-turn cap guarantee finite game termination. ## State representation - Persistent state: - `board_points[25]`: list of counter stacks on points 1 to 24 (positive for White, negative for Black) - `bar[2]`: integer count of captured counters on the bar per player - `borne_off[2]`: integer count of counters in *Mueang* per player `[0..15]` - `active_player`: `White | Black` - `turn_counter`: integer in `[1, 200]` - Per-turn ephemeral state: - `dice_rolled`: `(d1, d2)` - `remaining_moves`: list of move values available this turn - `has_bonus_roll`: boolean - Observable information: Fully observable public state (complete perfect-information board state with stochastic dice outcomes). ## Action space - `roll_dice()`: Generates `(d1, d2)` via the standard randomizer. - `move_counter(from_point, move_value)`: Moves counter from board point or bar to destination point or into *Mueang*. - `pass_turn()`: Forfeits remaining unplayable dice moves. ## Playability notes - Single-player-vs-AI: Ideal for classic backgammon AI architectures (TD-Gammon neural networks, expectimax search, or rollout evaluation). - Group games (n>4): Strictly a 2-player board game; domestic betting variants (*Ska Wong*) rotate players in an elimination queue. - Physical-skill games: The physical rolling cup (*Krabok*) and ramp (*Kong-Khong*) are replaced by uniform random dice generation. - What is lost in the adaptation: The aristocratic tactile pleasure of polished ivory counters sliding across hardwood tracks and the clatter of dice down the inclined *Kong-Khong* chute. ## Implementation hints - Represent board points as an array of 24 signed integers (+ for Player 1, - for Player 2). - Ensure bar-entry priority is enforced before any other regular moves are generated. - Suggested first milestone: Implement move generation with blot captures and camp blockades, verify doubles and bonus roll logic, and test bearing-off validation.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Siamese Backgammon (Thailand). (n.d.). Games of Countries. https://gamesofcountries.com/games/th-thailand/ska-thai

@misc{gamesofcountries-th-thailand-ska-thai,
  title = {Siamese Backgammon (Thailand)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/th-thailand/ska-thai}
}