Skip to main content
Formal Specification

Tossing Angkunh Seeds — Formal Specification

Cambodia · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Bos Ongkunh — AI-optimized specification ## General idea A turn-based team target-elimination game where agents select target seeds from the opposing formation and execute throws across sequential technique stages. Physical throwing accuracy is governed by a stochastic resolver parameterized by agent dexterity, distance, and target positioning, while team tactics focus on targeting order, extra-turn chain management, and risk mitigation against foul penalties. ## Formal model - **Abstraction taken:** The physical trajectory of the thrown *ongkunh* seed (underhand toss, low roll, or finger flick) is abstracted into a discrete aim-selection action followed by a probabilistic success check `P(hit | skill, stage_difficulty, target_state)`. - **Player/agent count:** 2 teams, TA and TB, each with k≥1 agents (formal baseline: k=3). - **Turn model:** Alternating team turns. Within a team, players take turns in a fixed sequential rotation. Successfully hitting a standing target grants an immediate bonus throw to the active player. ## Formal rules R1. Setup: Each team starts with M standing target seeds (default M=5, arranged as 1 central `me-koy` and 4 lateral `koy`). Initial state: SA={1,2,…,M} standing, SB={1,2,…,M} standing. R2. The game is divided into fixed technique stages: Stage 1 (*Bos*), Stage 2 (*Bay-paret*), Stage 3 (*Trakong*), Stage 4 (*Chak Khtek*). Teams progress through stages sequentially. R3. On an agent's turn, the active agent selects a target t∈Sopp and executes a throw action `throw(t)`. R4. [gap-fill] Outcome resolution: - With probability Phit(t), the throw succeeds: t is removed from Sopp (Sopp←Sopp∖{t}). The active agent is granted a bonus throw in the current turn. - With probability Pwobble, the seed wobbles without falling (*ngi-ngor*): target remains standing, turn ends. - With probability Pmiss=1−Phit−Pwobble, the throw misses: turn passes to the next agent in rotation on the opposing team. R5. [gap-fill] Bonus throw limit: An agent may chain at most |Sopp| consecutive bonus throws in a single turn before turn rotation is mandatory. R6. Win condition: If a team reduces |Sopp|=0 while their own target set retains ≥1 standing seed, that team wins the current stage/game immediately. R7. [gap-fill] Max round cap: If after 50 team rounds neither team has cleared the opposing targets, the team with fewer standing enemy targets remaining is declared the winner. ## Edge cases - **Tie at the end condition:** Not applicable — turns are strictly sequential; a single throw reduces the opponent's standing seeds to 0 first. - **A player with no legal move:** Not applicable — as long as |Sopp|>0, any standing seed is a valid aim target. - **Repetition / cycles (and the loop-breaking rule):** Impossible — standing seed count |Sopp| is monotonically non-increasing and bounded below by 0; bounded by R7 move cap. - **Simultaneous claims on the same resource or position:** Not applicable — turn order is sequential. - **Player elimination mid-round; turn order repair:** Players are not eliminated; only target seeds are removed. If a player disconnects, the team rotation skips that agent slot. - **Resource exhaustion:** Throwing seeds are infinite in supply (retrieved after each throw); target seeds decrement to 0. - **Termination guarantee: why the game provably ends:** Guaranteed by Phit>0 on every legal throw combined with R7 hard turn cap. ## State representation - `standing_targets_A`: bitmask or set of active targets for Team A (subset of {1..M}). - `standing_targets_B`: bitmask or set of active targets for Team B (subset of {1..M}). - `active_team`: ∈{A,B}. - `active_player_idx`: index in 0..k−1. - `current_stage`: ∈{1,2,3,4}. - `consecutive_hits`: counter of bonus throws in current turn. - Observable information: Fully observable — all seed positions, scores, and turn states are public knowledge. ## Action space - `aim_and_throw(target_id)`: where `target_id` ∈Sopp. ## Playability notes - **Single-player-vs-AI:** Natural — 1 human vs. 1 AI agent controlling 3 seeds each; deterministic scoring logic with AI sampling aim point based on target isolation. - **Group games (n>4):** Scales cleanly by increasing target count M=k and rotating player indices. - **Physical-skill model:** Phit(target,skill)=clamp(0.1+0.8×skill−0.05×distance_mod,0.05,0.95). - **What is lost:** The fine motor nuances of seed-spin, ground friction, and trajectory physics are simplified to a skill probability distribution. ## Implementation hints Extremely lightweight state machine. Can be implemented in under 100 lines of logic. Suggested milestone: Implement single 1v1 match with uniform target probabilities before adding stage modifiers and team rotations.

Download as JSON

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

Download JSON
Cite this page

Tossing Angkunh Seeds (Cambodia). (n.d.). Games of Countries. https://gamesofcountries.com/games/kh-cambodia/bos-ongkunh

@misc{gamesofcountries-kh-cambodia-bos-ongkunh,
  title = {Tossing Angkunh Seeds (Cambodia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/kh-cambodia/bos-ongkunh}
}