Skip to main content
Formal Specification

Cammag (from Manx "cam", crooked/bent) — Formal Specification

Isle of Man · stick-team · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Cammag — AI-optimized specification ## General idea A high-energy team field sport where two opposing teams use curved wooden sticks to navigate and strike a small ball across a continuous 2D pitch into the opponent's goal, balancing territorial possession, stick-hooking challenges, and passing tactics under discrete time steps. ## Formal model - **Abstraction taken:** The continuous field and physical running dynamics are discretized into a 2D grid pitch of size W×L (e.g. 15×30 cells) with discrete time ticks Δt. - **Player/agent count:** 2 teams (Team North N and Team South S), each controlling k field agents (e.g. k=5: 1 Goalkeeper, 2 Defenders, 2 Attackers). - **Turn model:** Simultaneous-action execution per tick: all agents commit movement and stick action vectors, resolved synchronously. ## Formal rules R1. Setup: Pitch grid [0..W−1]×[0..L−1]. Team N defends goal at y=0; Team S defends goal at y=L−1. The ball (*crick*) starts at pitch center (W/2,L/2) at rest. Match duration Tmax⁡=300 ticks (two halves of 150 ticks). R2. Legal Actions per Tick: Each agent chooses: - `move(dx, dy)`: Step up to 1 cell in any Chebyshev direction (‖dx‖≤1,‖dy‖≤1). - `strike_ball(target_vector, power)`: If agent is in ball's cell or adjacent, hit ball along vector v→. - `hook_stick(target_agent)`: Attempt to block an adjacent opponent from striking the ball. - `block_ball()`: Plant body to stop incoming ball trajectory. R3. Ball Physics & Possession: - The ball moves along vector v→, with velocity decaying by friction: ‖v→t+1‖=max⁡(0,‖v→t‖−μ). - When ball enters an agent's cell, if uncontested, the agent may redirect it or trap it. - [gap-fill] Stick contest resolver: If multiple agents attempt to strike or hook simultaneously, contest resolves based on agent strength attribute and proximity: P(successful strike by i)=Skilli∑jSkillj R4. Scoring: A goal is scored if ball coordinate passes into the goal line zone (x∈[Gmin,Gmax],y∈{0,L−1}). Score updates +1 for scoring team. R5. Restart: Following a goal, all agents reset to their respective halves, and ball resets to center with a contested neutral toss. R6. Win condition: Team with the higher goal total at t=Tmax⁡ wins. R7. [gap-fill] Sudden-death overtime: If scores are tied at t=Tmax⁡, match extends by 50 ticks; first team to score a golden goal wins. If still tied, match ends in a draw. ## Edge cases - Tie at the end condition: Resolved via 50-tick sudden-death overtime, then declared a draw (R7). - A player with no legal move: Not applicable — directional movement and idle stance are always available. - Repetition / cycles: Time strictly advances to Tmax⁡=300, forcing termination regardless of movement loops. - Simultaneous claims on the same resource or position: Resolved via stochastic contest resolver weighted by player attributes (R3). - Player elimination mid-round; turn order repair: If an agent is penalized or injured, they are removed from the pitch; team operates with k−1 agents. - Resource exhaustion: Ball is indestructible and unique; field space is persistent. - Termination guarantee: Provably terminates within Tmax⁡=300 ticks (or 350 ticks in overtime). ## State representation - Persistent state: Pitch dimensions W×L, team scores (SN,SS), match clock t∈[0..Tmax⁡], active penalty rosters. - Per-tick state: Ball position (xb,yb) and velocity vector v→b, positions of all 2k agents, committed action vectors. - Observable information: Fully observable public state. ## Action space - `move(direction)`: 8-way adjacent movement or hold. - `strike(angle, power)`: Hit ball along angle θ∈[0,2π). - `hook(opponent_id)`: Contest opponent's stick action. ## Playability notes - Single-player-vs-AI: Natural — player controls one agent (e.g. forward/captain) with teammates and opponents managed by positional tactical AI. - Group games (n>4): The traditional 20v20 North vs. South mob game reduces cleanly to 5v5 or 7v7 on the grid without losing tactical depth. - Physical-skill games: Abstracted to spatial positioning, passing vectors, and stochastic challenge resolution. - What is lost: The raw winter chill of St John's Fairfield, bruised shins from wild gorse sticks, and festive spectators cheering with hot cider. ## Implementation hints Standard 2D grid multi-agent soccer/hockey simulation architecture. First milestone: implement 15×30 pitch with single ball physics and basic 3v3 agent navigation.

Download as JSON

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

Download JSON
Cite this page

Cammag (from Manx "cam", crooked/bent) (Isle of Man). (n.d.). Games of Countries. https://gamesofcountries.com/games/im-isle-of-man/cammag

@misc{gamesofcountries-im-isle-of-man-cammag,
  title = {Cammag (from Manx "cam", crooked/bent) (Isle of Man)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/im-isle-of-man/cammag}
}