Skip to main content
Formal Specification

Pitch and Toss / Heads and Harps — Formal Specification

Ireland · gambling-stake · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: directGap-fills: 3
# Ceann is Cúl — AI-optimized specification ## General idea A high-tempo two-coin wagering game where an active pitcher tosses two coins simultaneously from a wooden paddle (*kip*) to resolve binary bets against a betting pool. Strategy revolves around bankroll management, Kelly criterion stake sizing, and deciding whether to retain the high-variance pitcher role across consecutive winning streaks or pass the paddle. ## Formal model - **Abstraction taken:** None required (`fidelity_class: direct`). The coin flips are modeled as two independent Bernoulli trials `C_1, C_2 ~ Bernoulli(0.5)` yielding outcomes in `{HH, TT, HT, TH}`. Wagering and pot mechanics map cleanly to discrete balance transitions. - **Player/agent count:** 4 agents (`A_1, A_2, A_3, A_4`) with initial bankroll `B_i = 100` units each. - **Turn model:** Sequential rounds centered around the active `Pitcher` agent until bankroll target or round cap is reached. ## Formal rules R1. Round initialization: - Active pitcher `Pitcher_id` is assigned (initially `A_1`, rotating clockwise). - Pitcher commits an opening stake `S_pot ∈ [1..min(B_Pitcher, 20)]`. - Remaining non-pitcher agents take turns covering the pot until total covered stake equals `S_pot`. If coverage is partial, `S_pot` is reduced to match total coverage. - Non-pitcher agents may also place peer-to-peer side bets `side_bet(bettor_id, backer_id, amount, choice ∈ {Heads, Tails})`. R2. The Toss action: - Pitcher executes `toss_coins()`. - Two independent fair coin outcomes `(c_1, c_2)` are drawn uniformly from `{(H, H), (T, T), (H, T), (T, H)}`. R3. Outcome resolution: - **Case `(H, H)` (Two Heads):** * Pitcher wins the central pot: receives `2 * S_pot` total (profit `+S_pot`). * Contributing bettors lose their matched shares. * Side bets on Heads win 1:1; side bets on Tails lose. * Pitcher retains the kip and may choose `continue_pitching()` or `pass_kip()`. - **Case `(T, T)` (Two Tails):** * Pitcher loses the central pot: profit `-S_pot`. * Contributing bettors receive their pro-rata share of `2 * S_pot` (profit `+stake_i`). * Side bets on Tails win 1:1; side bets on Heads lose. * Pitcher forfeits the kip; active pitcher index advances clockwise `(Pitcher_id % N) + 1`. - **Case `(H, T)` or `(T, H)` (Split / Odds):** * [gap-fill] Pot and side bets remain frozen. Pitcher automatically re-executes `toss_coins()` up to a maximum of 5 split re-rolls per round before forced pot return. R4. Elimination & bankruptcy: - Any agent whose bankroll reaches `B_i == 0` is eliminated from betting. - [gap-fill] If an agent cannot post the minimum stake (1 unit), that agent is removed from the active ring. R5. Victory condition: - The game terminates when one agent accumulates `≥ 300` units (or the aggregate of all bankrolls), or after 50 resolved rounds. - [gap-fill] Turn cap winner: If 50 rounds elapse, the agent with `argmax(B_i)` is declared the winner. ## Edge cases - Tie at the end condition: In bankroll evaluation at round 50, the agent with the highest bankroll wins; identical bankrolls share victory. - A player with no legal move: Bankrupt agents are eliminated; non-pitcher agents can always choose to bet 0 (pass on wagering). - Repetition / cycles: Handled by bounding consecutive split tosses to max 5 re-rolls, and bounding total rounds to 50. - Simultaneous claims on the same resource or position: Side-bet matches and pot coverage are processed sequentially in seating order. - Player elimination mid-round: If a non-pitcher goes bankrupt, remaining agents continue; if pitcher goes bankrupt on `(T,T)`, the kip passes to the next solvent agent. - Resource exhaustion: Bankrolls are finite and conserved in a closed financial system. - Termination guarantee: Monotonically progressing round counter capped at 50 rounds ensures finite termination. ## State representation - Persistent state: Agent bankrolls `B[agent_id]`, current pitcher ID `Pitcher_id`, round index (1..50). - Per-player state: Private risk parameter, active stake in pot `pot_share[agent_id]`, active side bets list. - Per-turn ephemeral state: Pot size `S_pot`, side bet registry, coin flip outcome `(c_1, c_2)`, split counter. - Observable information: Complete public visibility of bankrolls, pot commitments, side bets, and coin toss outcomes. ## Action space - `set_pot_stake(amount: integer)`: Pitcher sets initial round wager. - `cover_pot(amount: integer)`: Non-pitcher commits funds to cover pitcher's pot. - `propose_side_bet(target_agent_id, amount, bet_on: {Heads, Tails})`: Place peer-to-peer wager. - `accept_side_bet(bet_id)`: Confirm peer-to-peer wager. - `toss_coins()`: Execute coin toss from kip. - `pass_kip()`: Relinquish pitcher role to next agent. ## Playability notes - Single-player-vs-AI: Functions as a wagering and risk-optimization challenge with betting bots of varying risk tolerances. - Group games (n>4): Easily supports 2 to 8 agents. - Physical-skill games: Coin physics abstracted into true independent Bernoulli trials. - What is lost: The tension of watching two pennies tumble end-over-end through the air in a roadside ditch. ## Implementation hints Model the game engine around a two-phase transaction cycle: `Wager_Phase -> Toss_Phase -> Payout_Phase`. Ensure bankroll conservation `Sum(B_i) == Total_Initial_Funds` invariant holds after every round.

Download as JSON

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

Download JSON
Cite this page

Pitch and Toss / Heads and Harps (Ireland). (n.d.). Games of Countries. https://gamesofcountries.com/games/ie-ireland/ceann-is-cul

@misc{gamesofcountries-ie-ireland-ceann-is-cul,
  title = {Pitch and Toss / Heads and Harps (Ireland)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ie-ireland/ceann-is-cul}
}