Skip to main content
Formal Specification

Tug of War — Formal Specification

Estonia · strength-endurance · Confidence: high

← Back to game page

Implementation 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 (A and B) with K agents each (K∈[1,10]). Total agents =2K. - **Turn model:** Synchronous discrete ticks; best-of-3 pulls per match. ## Formal rules R1. Setup and Geometry: - 1D continuous axis x∈[−Xwin,+Xwin] with rope center marker at x=0. - Team A pulls toward −Xwin; Team B pulls toward +Xwin [gap-fill: target win boundary set to |Xwin|=3.0 metres]. - Each agent i starts with max stamina Emax=100, current stamina Ei=100, and base strength Si∼N(50,5). R2. Pull Modes and Energy Expenditure: - Each tick, every active agent chooses one action mode: 1. `BURST_PULL`: Force multiplier ×1.8; stamina drain ΔE=15. 2. `STEADY_PULL`: Force multiplier ×1.0; stamina drain ΔE=5. 3. `BRACE_HEELS`: Force multiplier ×0.4 (offensive), +50% resistance against opponent displacement; stamina drain ΔE=2. - [gap-fill: If an agent's stamina drops to Ei≤0, their output is locked to an exhausted crawl with force multiplier ×0.2 and zero resistance bonus]. R3. Team Force Aggregation and Displacement: - Net team pull force: FA=∑i∈ASi⋅Mi⋅CoordinationBonusA+ϵA, where CoordinationBonus rewards matching modes among teammates [gap-fill: +10% bonus if >80% of team selects the same mode]. - Net team pull force FB computed symmetrically. - Displacement per tick: Δx=α⋅(FB−FA)/(1+BraceResistance), where α is a ground friction scaling constant [gap-fill: α=0.02]. - Position update: xt+1=xt+Δx. R4. Pull Resolution and Fouls: - A single pull is won by Team A if x≤−Xwin, or by Team B if x≥+Xwin. - [gap-fill: If a pull reaches Tpull_max=100 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 (x-axis polarity inverts) and stamina recovers by 50% of maximum [gap-fill: between-pull stamina recovery min⁡(Ei+50,100)]. - The first team to win 2 pulls wins the match. ## Edge cases - Tie at the end condition: If at Tpull_max displacement x=0.0 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 Tpull_max 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 (FB−FA). - 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 Tpull_max+20 ticks; the match terminates in at most 3 pulls. ## State representation - Persistent state: - `match_score`: Tuple of (WA,WB) pull victories. - `current_pull_number`: Integer p∈{1,2,3}. - `agent_stamina`: Map of Agent ID →Float∈[0,100]. - `agent_strengths`: Map of Agent ID →Float. - Per-tick ephemeral state: - `rope_marker_x`: Float displacement x∈[−Xwin,+Xwin]. - `submitted_modes`: Map of Agent ID →{BURST,STEADY,BRACE}. - `current_tick`: Integer t∈[1,Tpull_max]. - Observable information: Fully observable rope marker position x, 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 (K=1) 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 JSON
Cite 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}
}