Formal Specification
Thai Checkers — Formal Specification
Thailand · board-abstract · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Mak Hos — AI-optimized specification
## General idea
Thai Draughts is an 8x8 two-player abstract strategy board game played on the 32 dark squares using 8 pieces per side deployed on the two nearest ranks. Regular pieces move and capture strictly forward along diagonals, and captures are mandatory with multi-jump chains (*Kin Boen*). Promoted Kings (*Hos*) gain long-range "flying" movement and capture across diagonals in all four directions.
## Formal model
- **Abstraction taken:** None; the game is natively a complete, discrete, deterministic abstract strategy board game.
- **Player/agent count:** 2 players (Player 1: White, Player 2: Black).
- **Turn model:** Strictly sequential, alternating turns starting with Player 1 (White).
## Formal rules
R1. Board & Setup:
- Played on the 32 dark squares of an 8x8 board. Ranks are numbered 1 to 8; files are a to h.
- Player 1 (White) places 8 regular pieces (*Bia*) on the dark squares of ranks 1 and 2.
- Player 2 (Black) places 8 regular pieces on the dark squares of ranks 7 and 8.
R2. Movement of Regular Pieces (*Bia*):
- A regular piece moves 1 square diagonally forward onto an unoccupied dark square.
- Regular pieces can never move backward or capture backward.
R3. Capturing Mechanics for Regular Pieces:
- If an adjacent forward diagonal square contains an enemy piece and the square immediately beyond on the same diagonal line is empty, the piece must jump over the enemy piece, landing on the empty square and removing the enemy piece from the board.
- Mandatory Capture (*Bang-khap Kin*): If any legal capture exists on a player's turn, a non-capturing move is illegal.
- Multi-Jumps (*Kin Boen*): If a landing square presents another forward jump, the piece must continue jumping in the same turn until all consecutive forward captures in that chain are completed. If multiple branching capture sequences are legal, the player may choose any valid sequence.
R4. King Promotion (*Khao Hos*):
- When a regular piece reaches any dark square on the opponent's back rank (rank 8 for White, rank 1 for Black), it immediately promotes to a King (*Hos*).
- If promotion occurs during a multi-jump sequence, the piece promotes and its turn ends immediately; it cannot continue jumping backward in the same turn.
R5. Flying King Movement and Captures (*Hos Bin*):
- A King moves diagonally in all 4 directions (forward and backward) across any number of unoccupied dark squares.
- King Capture: A King can jump over a lone enemy piece located any distance away along a diagonal vector, provided all intervening squares before the enemy piece are empty and at least one square immediately beyond the enemy piece is empty. The King may land on any unoccupied square along the diagonal line beyond the captured piece.
- King multi-jumps are mandatory and can change diagonal directions 90 degrees between successive jumps in a single turn.
R6. Victory Conditions:
- A player wins if they capture all of the opponent's pieces.
- A player wins if the opponent has no legal moves on their turn (immobilization / block).
- A player wins upon opponent resignation.
R7. [gap-fill] Draw Conditions:
- Threefold Repetition: If an identical board position (with the same active player and legal moves) occurs 3 times in a game, the game is declared a draw.
- [gap-fill] Move Limit Rule: If 40 consecutive half-moves (20 full turns per player) occur without a piece capture or King promotion, the game is declared a draw.
## Edge cases
- Tie at the end condition: The game ends in a draw (*Samoe*) upon threefold repetition, mutual agreement, or the 40-move non-progress limit rule.
- A player with no legal move: If a player on their turn has pieces remaining but no legal moves available (all pieces are blocked), that player loses the game immediately (Rule R6).
- Repetition / cycles: Resolved by R7: threefold repetition triggers an immediate draw, and the 40-move rule caps non-capture King cycles.
- Simultaneous claims on the same resource or position: Not applicable; turns are strictly sequential, and landing on an occupied square is illegal.
- Player elimination mid-round; turn order repair: Not applicable; 2-player zero-sum game ending immediately upon total capture or immobilization.
- Resource exhaustion: Total piece count (16 pieces) strictly decreases on captures and can never be replenished; maximum board occupancy is strictly bounded.
- Termination guarantee: why the game provably ends: Regular pieces can only advance forward, limiting total regular moves; once all pieces are Kings or blocked, the 40-move rule and threefold repetition rule provably prevent infinite loops.
## State representation
- Persistent state:
- `board`: array of 32 squares, each in `{ Empty, White_Man, White_King, Black_Man, Black_King }`
- `current_player`: `White | Black`
- `halfmove_clock`: integer (moves since last capture/promotion, resets on capture/promotion)
- `position_history`: hash map of board configurations to visit counts
- Per-turn ephemeral state:
- `legal_moves`: list of valid move sequences (filtered for mandatory captures if any exist)
- Observable information: Fully observable public state (complete perfect-information game).
## Action space
- `move(from_sq, to_sq)`: Simple diagonal advance of a regular piece or King.
- `jump(from_sq, path_sqs, captured_sqs)`: Single or multi-jump capture sequence removing specified enemy pieces.
## Playability notes
- Single-player-vs-AI: Perfect for traditional alpha-beta minimax search or MCTS; search engines benefit from the high tactical sharpness and mandatory capture pruning.
- Group games (n>4): Not applicable; strictly a 2-player abstract game.
- Physical-skill games: None; pure discrete mental calculation.
- What is lost in the adaptation: None; standard board rules map 1:1 to digital implementation.
## Implementation hints
- Represent the 32 dark squares using 64-bit or 32-bit bitboards for ultra-fast move generation and capture raycasting.
- Pay special attention to R4: reaching the back rank immediately ends the turn and crowns the King, preventing immediate backward multi-jumps in the same turn.
- Suggested first milestone: Implement move generation with mandatory capture enforcement and test against known Thai checkers opening puzzles.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Thai Checkers (Thailand). (n.d.). Games of Countries. https://gamesofcountries.com/games/th-thailand/mak-hos
@misc{gamesofcountries-th-thailand-mak-hos,
title = {Thai Checkers (Thailand)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/th-thailand/mak-hos}
}