Formal Specification
Banana Stalk Hobby Horse Riding — Formal Specification
Laos · dexterity-small · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Khi Ma Kan Kouay — AI-optimized specification
## General idea
Khi Ma Kan Kouay is a childhood craft and sprint racing game where players construct toy hobby horses from fresh banana leaf stalks and gallop along a marked track. Each turn, racing agents manage a tradeoff between sprint velocity, stamina expenditure, and hobby horse structural stability; pushing maximum gallop speed risks equipment slippage or stalk detachment, requiring an in-stride balance recovery action. The first agent whose horse crosses the finish line wins.
## Formal model
- **Abstraction taken:** The physical motor locomotion, hobby horse petiole assembly, and galloping gait are discretized into a linear track of length discrete distance units [gap-fill]. Speed, stamina, and equipment integrity are tracked as discrete numerical state variables.
- **Player/agent count:** 2 to 8 racing agents ().
- **Turn model:** Simultaneous discrete time steps (1 tick = 1 gallop stride; maximum 100 ticks).
## Formal rules
R1. Setup:
- All agents start at position on track with .
- Each agent starts with full stamina and full horse integrity .
R2. Action Selection: Each tick, all active agents simultaneously select one action:
- `GALLOP_SPRINT`: Advance units; stamina ; integrity risk .
- `CANTER_PACE`: Advance units; stamina ; integrity risk .
- `ADJUST_EQUIPMENT`: Advance 0 units; recovers horse integrity and reduces slip risk to 0.
- `REST_STANCE`: Advance 0 units; recovers stamina.
R3. Slip & Dislodgement Resolution:
- If an agent incurs an equipment slip: .
- If (stalk slips from thighs or head loosens), the agent enters `DISLODGED` status: velocity becomes 0 until a mandatory `ADJUST_EQUIPMENT` action is executed.
R4. Track Progression:
- New position (if not dislodged).
- If , velocity is clamped to a maximum of 1 unit per tick.
R5. Win Condition:
- The first agent to reach (50 units) with intact horse status () wins the race.
- If multiple agents cross in the same tick, the agent with the highest excess distance wins.
R6. [gap-fill] Lane collision rule: If two racers occupy the exact same coordinate , both racers suffer an automatic integrity penalty from bumped stalks.
## Edge cases
- **Tie at the end condition:** If two agents cross the finish line in the same tick with identical distance , the agent with higher remaining stamina wins; if still tied, a 20-unit sudden-death sprint is conducted [gap-fill].
- **A player with no legal move:** Not applicable; all action modes are always accessible (except forced adjustment when dislodged).
- **Repetition / cycles:** Bounded by strict monotonic forward distance accumulation and a hard global timeout of ticks.
- **Simultaneous claims on the same resource or position:** Co-location is resolved by R6 (shared coordinate applies a bump penalty without blocking forward progress).
- **Player elimination mid-round; turn order repair:** Not applicable; all racers compete until crossing the finish line.
- **Resource exhaustion:** Depleted stamina slows movement to minimum speed (); depleted integrity forces an adjustment turn.
- **Termination guarantee: why the game provably ends:** Guaranteed to terminate because even at minimal pace (), an agent crosses in at most 50 ticks (well within ).
## State representation
- Persistent state: Track length , agent baseline parameters.
- Per-tick ephemeral state: Position vector , stamina vector , integrity vector , dislodged status flags, simultaneous action selections.
- Observable information: Fully observable — all racer positions, visible fatigue levels, and equipment states are public information.
## Action space
- `gallop_sprint()`: High speed, high fatigue and slip risk.
- `canter_pace()`: Steady sustainable speed, low risk.
- `adjust_equipment()`: Halt to re-secure banana stalk and restore integrity.
- `rest_stance()`: Halt to recover stamina.
## Playability notes
- Single-player-vs-AI: Highly natural push-your-luck racing game. Players balance aggressive sprint bursts against the danger of losing horse control near the finish line.
- Group games (n>4): Scales cleanly to 8+ agents with lane crowding effects.
- Physical-skill games: Physical balance and handmade craft resilience are modeled as stamina and integrity health bars.
- What is lost in the adaptation: The tactile joy of carving banana leaf ribs, leaf whinnies, and spontaneous village laughter.
## Implementation hints
Treat as a simple discrete grid race with probabilistic hazards. Branching factor is small (4 discrete actions). Milestone 1: Implement track movement, stamina decay, and finish line detection; Milestone 2: Add AI racer with threshold-based risk policy (sprint when integrity , adjust when dislodged).
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Banana Stalk Hobby Horse Riding (Laos). (n.d.). Games of Countries. https://gamesofcountries.com/games/la-laos/khi-ma-kan-kouay
@misc{gamesofcountries-la-laos-khi-ma-kan-kouay,
title = {Banana Stalk Hobby Horse Riding (Laos)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/la-laos/khi-ma-kan-kouay}
}