Formal Specification
Tug of War — Formal Specification
Estonia · strength-endurance · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: abstractedGap-fills: 8
# Köievedu (Tug of War) — AI-optimized specification
## General idea
A synchronous aggregate physical strength and endurance contest between two teams pulling a heavy hemp rope in opposite directions. Each round, teams manage collective stamina, choosing between explosive bursts, steady traction, and defensive heel-bracing to displace the rope's central marker past a target threshold across a best-of-three match.
## Formal model
- **Abstraction taken:** The continuous biomechanical friction and muscular isometric contraction are discretized into synchronous time ticks where agents allocate stamina into distinct pulling modes (`BURST_PULL`, `STEADY_PULL`, `BRACE_HEELS`), converted to net 1D displacement via a physics resolver.
- **Player/agent count:** 2 teams ( and ) with agents each (). Total agents .
- **Turn model:** Synchronous discrete ticks; best-of-3 pulls per match.
## Formal rules
R1. Setup and Geometry:
- 1D continuous axis with rope center marker at .
- Team pulls toward ; Team pulls toward [gap-fill: target win boundary set to ].
- Each agent starts with max stamina , current stamina , and base strength .
R2. Pull Modes and Energy Expenditure:
- Each tick, every active agent chooses one action mode:
1. `BURST_PULL`: Force multiplier ; stamina drain .
2. `STEADY_PULL`: Force multiplier ; stamina drain .
3. `BRACE_HEELS`: Force multiplier (offensive), +50% resistance against opponent displacement; stamina drain .
- [gap-fill: If an agent's stamina drops to , their output is locked to an exhausted crawl with force multiplier and zero resistance bonus].
R3. Team Force Aggregation and Displacement:
- Net team pull force: , where rewards matching modes among teammates [gap-fill: +10% bonus if of team selects the same mode].
- Net team pull force computed symmetrically.
- Displacement per tick: , where is a ground friction scaling constant [gap-fill: ].
- Position update: .
R4. Pull Resolution and Fouls:
- A single pull is won by Team if , or by Team if .
- [gap-fill: If a pull reaches ticks without crossing a boundary, the pull is awarded to the team holding the positive displacement in their direction].
R5. Match Scoring:
- The match is contested as the best of 3 pulls (*kolmest parem*).
- Between pulls, teams swap sides (-axis polarity inverts) and stamina recovers by of maximum [gap-fill: between-pull stamina recovery ].
- The first team to win 2 pulls wins the match.
## Edge cases
- Tie at the end condition: If at displacement exactly, a 20-tick sudden-death extension is triggered; if still tied, victory is awarded to the team with higher remaining aggregate stamina [gap-fill: stamina-based tiebreaker].
- A player with no legal move: Not applicable; agents always select from the 3 pull modes.
- Repetition / cycles: Bounded by finite pull tick limits and fixed best-of-3 match structure [gap-fill: tick ceiling guarantees termination].
- Simultaneous claims on the same resource or position: Handled continuously via arithmetic net force difference .
- Player elimination mid-round; turn order repair: If an agent is disqualified or disconnects, that agent's force contribution becomes 0; team continues with remaining members.
- Resource exhaustion: Stamina depletes monotonically during heavy exertion, forcing teams into low-power states which breaks stalls.
- Termination guarantee: Each pull terminates in at most ticks; the match terminates in at most 3 pulls.
## State representation
- Persistent state:
- `match_score`: Tuple of pull victories.
- `current_pull_number`: Integer .
- `agent_stamina`: Map of Agent ID .
- `agent_strengths`: Map of Agent ID .
- Per-tick ephemeral state:
- `rope_marker_x`: Float displacement .
- `submitted_modes`: Map of Agent ID .
- `current_tick`: Integer .
- Observable information: Fully observable rope marker position , public match score, and visible physical postures of all pullers.
## Action space
- `select_mode(mode)`: Choose `BURST_PULL`, `STEADY_PULL`, or `BRACE_HEELS` each tick.
## Playability notes
- Single-player-vs-AI: Highly playable as a strategic stamina and cadence management game where human acts as Team Captain directing AI teammates or controlling anchor puller.
- Group games (n>4): Reduces seamlessly to 1-on-1 duel () without altering any equations or rules.
- Physical-skill games: Raw muscular endurance and grip friction are abstracted into numeric stamina pools and force multipliers.
- What is lost in the adaptation: The tactile burn of rope fiber on palms, ground soil slippage, and vocal rhythm shouting ("Üks, kaks, tõmba!").
## Implementation hints
Displacement is a simple 1D ODE solved incrementally. First milestone: Implement 1v1 stochastic force pulling with stamina decay before adding team coordination bonuses and best-of-3 side swapping.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Tug of War (Estonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ee-estonia/koievedu
@misc{gamesofcountries-ee-estonia-koievedu,
title = {Tug of War (Estonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ee-estonia/koievedu}
}