Formal Specification
Cammag (from Manx "cam", crooked/bent) — Formal Specification
Isle of Man · stick-team · Confidence: high
← Back to game pageImplementation 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 (e.g. cells) with discrete time ticks .
- **Player/agent count:** 2 teams (Team North and Team South ), each controlling field agents (e.g. : 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 . Team defends goal at ; Team defends goal at . The ball (*crick*) starts at pitch center at rest. Match duration 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 ().
- `strike_ball(target_vector, power)`: If agent is in ball's cell or adjacent, hit ball along vector .
- `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 , with velocity decaying by friction: .
- 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:
R4. Scoring: A goal is scored if ball coordinate passes into the goal line zone . Score updates 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 wins.
R7. [gap-fill] Sudden-death overtime: If scores are tied at , 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 , 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 agents.
- Resource exhaustion: Ball is indestructible and unique; field space is persistent.
- Termination guarantee: Provably terminates within ticks (or 350 ticks in overtime).
## State representation
- Persistent state: Pitch dimensions , team scores , match clock , active penalty rosters.
- Per-tick state: Ball position and velocity vector , positions of all 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 .
- `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 or 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 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 JSONCite 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}
}