Skip to main content
Formal Specification

Coin-Pit Pitch — Formal Specification

Nepal · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Khopi — AI-optimized specification ## General idea Khopi is a 2–6 player coin/token pitching and striking game. In Phase 1, agents pitch tokens toward a central ground hole (*khopi*), ranking their distance to determine shooting priority. In Phase 2, the leading shooter attempts a precision strike on a designated opponent token with a master stone to sweep the staked pot. ## Formal model - **Abstraction taken:** Physical throwing trajectory is abstracted into 2D continuous coordinates (x,y) sampled from a 2D Gaussian distribution centered on the hole (0,0). - **Player/agent count:** 2 to 6 agents. - **Turn model:** Sequential pitching in Phase 1, followed by priority-ordered target shooting in Phase 2. ## Formal rules R1. Setup: Each agent stakes 1 token into the pot pool P=n. The target hole is located at origin (0,0). R2. Phase 1 (Pitching): Each agent i chooses aim bias (μx,μy) and pitches a token. - Token landing coordinate: (Xi,Yi)∼𝒩((μx,μy),σ2I). - Distance to hole: di=Xi2+Yi2. - Hole-in condition: If di≤Rhole, token lands inside the hole (di←0). R3. Shooting Order: Agents are sorted in ascending order of distance: d(1)≤d(2)≤⋯≤d(n). R4. Phase 2 (Target Strike): - The top-ranked shooter (1) takes their turn. Opponents designate target token T∈{2,…,n}. - Shooter attempts to hit target T with master stone *Taau*. - [gap-fill] Strike success probability is Phit=max⁡(0.1,1.0−α⋅distance(Shooter,T)). - Sample u∼Uniform(0,1). R5. Strike Resolution: - If u≤Phit: Strike succeeds! Shooter (1) captures all P staked tokens in the pot. - If u>Phit: Strike misses! Turn passes to the next-ranked shooter (2), who selects an available target and attempts a strike. R6. End Condition: Round terminates as soon as a shooter succeeds and collects the pot, or all shooters miss (in which case tokens carry over to the next round). R7. Match Win: First agent to accumulate a target bankroll B≥10 tokens wins. ## Edge cases - Tie at the end condition: In Phase 1 distance ties, [gap-fill] resolved by a sudden-death closest-pitch toss. - A player with no legal move: Not applicable — pitching and striking actions always available. - Repetition / cycles: Bounded by finite shooter queue in Phase 2. - Simultaneous claims on the same resource or position: Strict ascending distance sorting resolves all priority. - Player elimination mid-round: An agent who runs out of stake tokens cannot enter new pots. - Resource exhaustion: Total token pool is conserved. - Termination guarantee: Monotonic bankroll accumulation toward target threshold B. ## State representation - `token_positions`: Array of 2D coordinates [(X1,Y1),…,(Xn,Yn)]. - `distances`: Array [d1,…,dn]. - `shooting_order`: Sorted permutation of agent IDs. - `pot`: Integer P. - `bankrolls`: Array of integers [B1,…,Bn]. ## Action space - `pitch_token(aim_x, aim_y)`: Continuous coordinates for Phase 1 toss. - `strike_target(target_agent_id)`: Select opponent token to strike in Phase 2. ## Playability notes - Single-player-vs-AI: Fully natural as a target-aiming contest against AI agents. - Group games (n>4): Scales naturally up to 6 agents without structural distortion. - Physical-skill games: Geometric aiming and hand stability parameterized by 2D Gaussian variance σ2. - What is lost in the adaptation: Surface irregularities of outdoor soil and the tactile finger-flick. ## Implementation hints Very clean two-phase probabilistic architecture. First milestone: build the 2D spatial sampler and test sorting and strike resolution logic.

Download as JSON

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

Download JSON
Cite this page

Coin-Pit Pitch (Nepal). (n.d.). Games of Countries. https://gamesofcountries.com/games/np-nepal/khopi

@misc{gamesofcountries-np-nepal-khopi,
  title = {Coin-Pit Pitch (Nepal)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/np-nepal/khopi}
}