Skip to main content
Formal Specification

Cnapan (Welsh Medieval Hurling) — Formal Specification

United Kingdom · ball-team · Confidence: high

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 3
# Cnapan — AI-optimized specification ## General idea A territory-advancement ball game played on a 1D or 2D grid where two parish teams struggle for possession of a tallow-coated wooden ball. Agents must balance forward carrying, aerial passing, and mass scrum engagements, with ball-handling stochasticity elevated by the grease mechanic (high fumble probability upon tackles or long throws). ## Formal model - **Abstraction taken:** The continuous cross-country parish landscape is discretized into a 1D linear track of `N = 21` zones spanning from Team A's Parish Goal (Zone 0) to Team B's Parish Goal (Zone 20), with the neutral starting meadow at Zone 10. - **Player/agent count:** 2 teams of 8 agents (6 foot runners, 2 cavalry flankers). - **Turn model:** Simultaneous tick-based turn structure. Each tick, all agents submit intended movement, passing, or tackling actions, resolved simultaneously in phase order. ## Formal rules R1. **Initial State:** The ball begins at neutral Zone 10. Foot agents start deployed across Zones 8 to 12. Cavalry agents start in back zones (Zones 5 and 15). R2. **Tick Phases:** Each round executes in four deterministic phases: 1. *Movement Phase:* Agents expend movement points (Foot = 1 zone/tick; Cavalry = 2 zones/tick). 2. *Possession & Pickup Phase:* If the ball is loose in a zone, agents in that zone attempt pickup. Probability of successful pickup = `P_pickup = 0.70` (reflecting tallow grease). If multiple opposing agents attempt pickup, a stochastic scramble resolver decides possession based on team numbers. 3. *Action Phase (Pass / Carry):* The ball-carrier may attempt to carry the ball into an adjacent zone or execute a pass: - `pass(target_agent_id, target_zone)`: Success probability degrades with distance: `P_pass = max(0.20, 0.90 - 0.15 * distance_in_zones)`. On failure, the ball lands loose in an intermediate zone. 4. *Scrum & Tackle Phase:* If opposing agents occupy the ball-carrier's zone, a tackle contest occurs: - Attacking tackle strength = `sum(tackler_strengths)`; Carrier defense = `carrier_strength + sum(teammate_strengths)`. - If tackle exceeds defense: carrier is tackled; ball becomes loose with a 40% chance of immediate turnover. R3. [gap-fill] Cavalry Restrictions:** Cavalry agents cannot enter a zone containing 3 or more foot agents engaged in a scrum, modeling the historical rule against horse trampling. R4. [gap-fill] Peace Call ("Heddwch"):** If a scrum in a single zone remains contested for 3 consecutive ticks with zero zone progression, the ball is automatically dislodged and awarded as a free throw-up in that zone. R5. **Scoring:** Team A scores by successfully possessing the ball in Zone 0 (Team A's Goal); Team B scores by possessing the ball in Zone 20 (Team B's Goal). R6. [gap-fill] Turn Limit:** A match terminates at `T_max = 200` ticks. If neither team has goaled, the team whose deepest ball advance reached closest to the opposing goal is declared the winner. ## Edge cases - **Tie at the end condition:** If at `T_max = 200` no goal is scored and net yardage is identical, a 30-tick sudden-death overtime commences from Zone 10. - **A player with no legal move:** Not applicable; agents can always choose `stand_ground` or `move(direction)`. - **Repetition / cycles:** Prevented by the strict `T_max = 200` game clock and R4 scrum-break rule. - **Simultaneous claims on the same resource:** When opposing agents enter an empty ball zone on the same tick, possession is resolved via a weighted Bernoulli draw proportional to the number of contesting agents. - **Player elimination mid-round:** If an agent is eliminated or incapacitated, they are removed from the board; team continues with remaining active agents. - **Resource exhaustion:** The single ball cannot be destroyed; positions and tick clock are strictly bounded. - **Termination guarantee:** The game provably terminates within at most 200 ticks (or 230 ticks in overtime) via R6. ## State representation - **Global state:** `ball_zone: int in [0..20]`, `ball_carrier_id: Optional[int]`, `current_tick: int in [0..200]`, `scrum_counter: int`. - **Per-agent state:** `agent_id: int`, `team_id: int in [0, 1]`, `role: Enum(FOOT, CAVALRY)`, `current_zone: int in [0..20]`, `stamina: float`. - **Observable information:** Fully observable game state. ## Action space - `move(direction: int in [-1, 0, +1])`: Move along the 1D track. - `pass(target_agent_id: int)`: Pass to a visible teammate. - `tackle(target_agent_id: int)`: Initiate or join a tackle on the enemy ball-carrier. - `stand_ground()`: Hold position to form a defensive wall. ## Playability notes - **Single-player-vs-AI:** Highly playable with the human controlling team captain/carrier while heuristic AI directs teammates into passing channels and defensive screen positions. - **Group games reduction:** The 8v8 multi-agent structure cleanly reduces to two high-level commanders issuing macro-tactical orders or controlling individual agents in turn. - **Physical-skill games:** Physical endurance and grease slickness are modeled via parameterized stamina decay and distance-decaying pass/pickup probabilities. - **What is lost in the adaptation:** The physical sensory comedy of handling greasy wood and navigating real-world topographic obstacles (rivers, hedges, hills). ## Implementation hints Treat zone occupancy as multi-agent sets. The core engine loop requires: (1) action collection, (2) simultaneous movement updates, (3) pickup/pass resolution, (4) tackle/scrum evaluation, and (5) win-condition check. Branching factor is approximately `4^8` per team, easily tractable via hierarchical sub-team coordination policies.

Download as JSON

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

Download JSON
Cite this page

Cnapan (Welsh Medieval Hurling) (United Kingdom). (n.d.). Games of Countries. https://gamesofcountries.com/games/gb-united-kingdom/cnapan

@misc{gamesofcountries-gb-united-kingdom-cnapan,
  title = {Cnapan (Welsh Medieval Hurling) (United Kingdom)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/gb-united-kingdom/cnapan}
}