Formal Specification
Pitching to the Line (Czech Coin / Button Pitching) — Formal Specification
Czechia · dexterity-throw · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Hra v čáru — AI-optimized specification
## General idea
A two-stage pitching and coin-flipping wagering game where agents pitch tokens toward a boundary line to establish priority order. The closest non-overshooting agent gains the first opportunity to toss all pooled tokens into the air, claiming every coin landing heads-up before passing remaining tails to the next closest agent.
## Formal model
- **Abstraction taken:** Token pitching along a 1D line of length m is modeled via chosen throw force yielding distance , with . Flipping tokens is modeled as independent Bernoulli trials (fair coin toss).
- **Player/agent count:** agents (, standard ).
- **Turn model:** Two phases per round: (1) Sequential pitch; (2) Priority-ordered coin flipping until pool exhaustion.
## Formal rules
R1. Setup: Round begins with each of the agents contributing 1 token to the pool (). Target line is at m.
R2. Pitching phase: Each agent chooses throwing parameter . Landing coordinate , where .
R3. Ranking determination:
- If : Token is disqualified (overshot); rank assigned as (or sorted by largest overshoot).
- If : Proximity metric is .
- Priority queue sorts agents by ascending . Ties in broken by coin flip or agent ID.
R4. Flipping phase:
- Active agent is .
- Agent flips all currently remaining tokens in pool .
- Each token lands `HEADS` with , `TAILS` with .
- All tokens landing `HEADS` are transferred to agent 's bank.
- Remaining `TAILS` tokens stay in pool .
- If and is not empty: Next agent in takes turn flipping remaining pool.
- [gap-fill] If is exhausted while , priority wraps back to the 1st-ranked agent in .
R5. Round end: Round concludes when .
R6. Match win condition: After rounds (default ), the agent with the highest total accumulated tokens in their bank wins the match.
R7. [gap-fill] Sudden death tiebreaker: If scores are tied after rounds, tied agents participate in a single sudden-death pitch; closest to the line wins.
## Edge cases
- Tie at the end condition: Resolved via R7 sudden-death pitch.
- A player with no legal move: Not applicable; pitching and flipping actions are strictly automatic given parameters.
- Repetition / cycles: Bounded because each flip pass has per token, guaranteeing geometric decay of pool .
- Simultaneous claims on the same resource: Priority queue strictly orders all token claims.
- Player elimination mid-round: An agent who runs out of bank tokens is eliminated from subsequent rounds; current round completes normally.
- Resource exhaustion: Monotonic depletion of round pool to 0.
- Termination guarantee: Strict termination guaranteed by geometric convergence of fair coin tosses and finite round count .
## State representation
- Persistent state: `agent_banks: list[int]`, `current_round: int`, `total_rounds: int`.
- Ephemeral round state: `pitches: dict[int, float]`, `priority_queue: list[int]`, `remaining_pool: int`.
- Observable information: Fully observable (all pitches, token states, and scores are public).
## Action space
- `pitch_token(force: float)` with .
- `flip_pool()`: Triggers Bernoulli flip of remaining pool tokens.
## Playability notes
- Single-player-vs-AI: Natural; 1 human vs. 1–3 AI bots tuning pitch force against noise variance.
- Group games (n>4): Scales smoothly up to 8 agents.
- Physical-skill games: Underhand coin tossing and slide friction are captured by the Gaussian error model.
- What is lost: The physical tactile art of flicking and spinning coins off the thumb.
## Implementation hints
Low complexity. The two-phase structure (pitching sort followed by geometric flip loop) is straightforward to code and test. First milestone: implement round logic for 4 agents with deterministic force inputs and randomized coin flips.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Pitching to the Line (Czech Coin / Button Pitching) (Czechia). (n.d.). Games of Countries. https://gamesofcountries.com/games/cz-czechia/hra-v-caru
@misc{gamesofcountries-cz-czechia-hra-v-caru,
title = {Pitching to the Line (Czech Coin / Button Pitching) (Czechia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/cz-czechia/hra-v-caru}
}