Formal Specification
Pastoral Pit-and-Pebble Mancala — Formal Specification
Bhutan · board-abstract · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Düzalé — AI-optimized specification
## General idea
A traditional Bhutanese count-and-capture mancala game played on a 9-pit layout (two rows of 4 pits plus a single central reservoir pit called *Apai Gutö*). Players sow pebbles clockwise, chaining multiple laps if landing in an occupied pit, and triggering swipe captures across empty pits to accumulate pebbles into their personal store.
## Formal model
- **Abstraction taken:** None required (direct discrete turn-based mancala system). The 9 pits are represented as a 1D circular array of indices `0..8`, where indices `0..3` form Player A's row, index `4` is *Apai Gutö*, indices `5..8` form Player B's row, and sowing travels clockwise `0 -> 1 -> 2 -> ... -> 8 -> 0`.
- **Player/agent count:** 2 players.
- **Turn model:** Alternating turns; multi-lap sowing continues within a single turn until an empty pit terminates the lap.
## Formal rules
R1. Board Topology: 9 ordered pits in a closed loop (`0..8`):
- Pits `0, 1, 2, 3`: Player 0's small pits (start with 5 pebbles each).
- Pit `4`: *Apai Gutö* (starts with 0 pebbles).
- Pits `5, 6, 7, 8`: Player 1's small pits (start with 5 pebbles each).
- Total pebbles in play: exactly 40.
R2. On their turn, the active player chooses any non-empty small pit `p` (pit `p != 4` and `pebbles[p] > 0`).
R3. Sowing:
- The player takes all `K` pebbles from pit `p` (`pebbles[p] = 0`).
- Moving clockwise (`curr = (p + 1) mod 9`), the player drops exactly 1 pebble into each consecutive pit until all `K` pebbles are distributed.
R4. Lap Continuation vs. Capture:
- Let `last_pit` be the pit where the final pebble was dropped.
- Multi-lap Continuation: If `pebbles[last_pit] > 1` (i.e. the pit was already occupied before the drop), the player immediately scoops all pebbles from `last_pit` and continues sowing in the same clockwise direction.
- Lap Termination: If `pebbles[last_pit] == 1` (i.e. the pit was empty before the drop), the sowing phase ends immediately.
- Swipe Capture: If sowing terminates in an empty pit (`pebbles[last_pit] == 1`), examine the immediate next pit `next_pit = (last_pit + 1) mod 9`. If `pebbles[next_pit] > 0` and `next_pit != 4`, the player captures all pebbles in `next_pit`, transferring them to their `captured_score`.
- Reservoir Rule: If `next_pit == 4` (*Apai Gutö*), [gap-fill] pebbles in *Apai Gutö* can only be captured if the player's last drop occurred at pit `3` and *Apai Gutö* contains 10 or fewer pebbles.
R5. No Legal Moves: If an active player begins their turn with 0 pebbles in all 4 of their designated small pits, their turn is skipped. If neither player has a legal move, the game ends.
R6. Win Condition: When all small pits are empty, any remaining pebbles in *Apai Gutö* are divided equally (or awarded to the player with the most captured stones). The player with the highest `captured_score` wins.
R7. [gap-fill] Move Limit: If a match exceeds 150 total turns without a capture, the player with the highest running `captured_score` wins.
## Edge cases
- Tie at the end condition: Exactly 20-20 score results in a formal draw.
- A player with no legal move: Handled via R5 (turn skipped; if both blocked, game ends).
- Repetition / cycles: Bounded by R7 (150-turn cap guarantees loop termination).
- Simultaneous claims on the same resource or position: Turns are strictly alternating.
- Player elimination mid-round: Not applicable; match runs to final board clearance.
- Resource exhaustion: Exactly 40 discrete pebbles; total pebble count is strictly conserved.
- Termination guarantee: Pebbles are permanently removed from the active board into captured stores, strictly shrinking the board state towards termination.
## State representation
- Persistent state: `pits[9]` (integers 0..40), `captured_score[2]` (integers 0..40), `turn_count` (integer).
- Per-turn ephemeral state: `active_player`, `current_sowing_pit`, `hand_pebbles`.
- Observable information: Fully observable (perfect information abstract strategy game).
## Action space
- `select_pit(pit_index)`: Select a non-empty pit from the active player's side (`0..3` for Player 0, `5..8` for Player 1).
## Playability notes
- Single-player-vs-AI: Fully engine-ready; classic perfect-information game solvable via Minimax / Alpha-Beta pruning or MCTS.
- Group games (n>4): Strictly a 2-player abstract game.
- Physical-skill games: Not applicable.
- What is lost: The physical sensation of scooping mountain pebbles from pasture earth.
## Implementation hints
Extremely high engine suitability. 9-element array state with multi-lap while loop. First milestone: implement basic single-lap sowing and empty-pit swipe captures.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Pastoral Pit-and-Pebble Mancala (Bhutan). (n.d.). Games of Countries. https://gamesofcountries.com/games/bt-bhutan/duzale
@misc{gamesofcountries-bt-bhutan-duzale,
title = {Pastoral Pit-and-Pebble Mancala (Bhutan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/bt-bhutan/duzale}
}