Formal Specification
Sri Lankan Hopscotch — Formal Specification
Sri Lanka · dexterity-small · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Katta Gaseema — AI-optimized specification
## General idea
Katta Gaseema (Sri Lankan Hopscotch / Pandi) is a traditional turn-based grid-hopping and territory-conquest game. Players toss a flat stone marker (*kāvata*) into sequential numbered compartments of a geometric court, hop through on one foot while straddling paired boxes, retrieve the stone on the return run, and unlock the right to claim exclusive personal "houses" (*gēval*). Claimed houses allow the owner to rest on both feet while acting as impassable forbidden zones for opponents.
## Formal model
- **Abstraction taken:** Direct discrete formalization. The court is modeled as an 8-compartment graph: `B_1, B_2, (B_3, B_4), B_5, (B_6, B_7), Hada` (Moon/Sky). Stone tossing and hopping balance are modeled with discrete success probabilities based on player dexterity.
- **Player/agent count:** 2 to 6 players (default 2 players).
- **Turn model:** Strictly sequential turns with foul-turn handoff.
## Formal rules
R1. Setup:
- Court compartments:
- Compartment 1: Single box.
- Compartment 2: Single box.
- Compartments 3 & 4: Paired lateral boxes (straddle allowed).
- Compartment 5: Single box.
- Compartments 6 & 7: Paired lateral boxes (straddle allowed).
- Compartment 8 (*Hada* / Moon): Top resting area (both feet permitted).
- Each player `p` has a progression level `L_p = 1` (target box `1..8`), `Houses_p = []`, and status `ACTIVE`.
R2. The Marker Toss:
- On their turn, player `p` tosses marker into target box `L_p`.
- [gap-fill] Toss success probability: `P(Toss_Land) = 0.90 - 0.05 * (L_p - 1)`.
- If toss fails (lands on line or wrong box), player commits a Foul (*dæveema*). Turn ends immediately; `L_p` remains unchanged for next turn.
R3. Hopping Navigation:
- Player hops through court from Box 1 to *Hada* and back:
- Single boxes: Player must hop on 1 foot.
- Paired boxes: Player lands with 1 foot in each box simultaneously.
- Target Box `L_p`: Player must hop completely over this box without touching it.
- Opponent House: Player is strictly prohibited from landing in an opponent's House (must jump over).
- Own House: Player may rest on both feet.
- [gap-fill] Balance Check: Traversal through course has a base slip probability `P(Foul_Step) = 0.03 * (number of double-jumps required over houses)`.
- On the return hop, player balances on 1 foot in adjacent box, picks up the marker from `L_p`, and hops out of the court.
- If traversal succeeds: `L_p = L_p + 1`. Player takes another turn immediately.
- If foul occurs: Turn ends; next player begins.
R4. House Acquisition (*Gē Allā-Gæneema*):
- When player completes level `L_p = 8` (*Hada*), they attempt a House Claim Toss:
- Player stands at baseline facing away from court and tosses marker backward over shoulder.
- Sample random target box `b in {1..7}`.
- If box `b` is currently unclaimed: Box `b` becomes player `p`'s House (`Houses_p.append(b)`).
- If box `b` is already owned or lands outside: Claim fails.
- Player resets progression level `L_p = 1` to pursue additional houses.
R5. Win Condition:
- The game terminates when all 7 numbered boxes are owned as houses, or when an opponent is completely blocked by consecutive enemy houses and cannot make a legal jump.
- The player who owns the most houses wins the game.
## Edge cases
- Tie at the end condition: If two players own an equal number of houses upon court exhaustion, victory is shared or decided by a single-throw sudden death toss.
- A player with no legal move: If two consecutive single boxes (e.g. Box 1 and Box 2) are owned by the opponent, an opponent cannot physically clear both boxes in a single hop. The blocked player is eliminated from further runs.
- Repetition / cycles: Progress is bounded by successful box completions and finite total court compartments (7 houses max), guaranteeing termination.
- Simultaneous claims on the same resource: Not applicable — turns are sequential; once a house is claimed, it is permanently locked to that player.
- Player elimination mid-round: Eliminated players are skipped in future turn rotations; their owned houses remain locked on the board.
- Resource exhaustion: When all 7 grid boxes are claimed as houses, the game ends immediately.
- Termination guarantee: `Houses_claimed` monotonically increases up to 7, guaranteeing finite game duration.
## State representation
- Persistent state:
- `court_houses` (dictionary mapping box index `1..7` to owner player ID or `None`).
- `player_progress` (array of integers `L_p in 1..8` per player).
- `active_player_index` (integer `0..n-1`).
- `player_eliminated` (array of booleans).
- Per-turn ephemeral state:
- `target_box` (integer `1..8`).
- `toss_outcome` (boolean).
- `hopping_path` (sequence of nodes visited).
- Observable information: Fully observable — all player progression levels, house ownership markings, and court layout are public.
## Action space
- `toss_marker()`:
- Trigger stochastic marker toss into target box `L_p`.
- `attempt_traversal()`:
- Execute sequential hop route through available valid compartments.
- `claim_house_toss()`:
- Blind over-the-shoulder throw to acquire an unowned compartment.
## Playability notes
- Single-player-vs-AI: Highly playable tactical race and area-control game. AI agents evaluate which boxes to target and calculate jumping feasibility over opponent houses.
- Group games (n>4): Extends cleanly to 3–6 players; multi-player dynamics introduce strategic blocking where players box each other in.
- Physical-skill games: Physical balance and stone tossing are modeled as discrete dexterity checks and stochastic landing distributions.
- What is lost in the adaptation: The tactile feel of scraping chalk on temple flagstones and single-leg muscle burning.
## Implementation hints
Low complexity discrete board/graph game. Model court as a directed acyclic path with jump-over edges for occupied houses. Milestone 1: implement level progression, foul triggers, house ownership dict, and win condition check in under 120 lines.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sri Lankan Hopscotch (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/katta-gaseema
@misc{gamesofcountries-lk-sri-lanka-katta-gaseema,
title = {Sri Lankan Hopscotch (Sri Lanka)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/lk-sri-lanka/katta-gaseema}
}