Skip to main content
Formal Specification

Tug of War — Formal Specification

Bulgaria · strength-endurance · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: abstractedGap-fills: 3
# Darpane na vazhe — AI-optimized specification ## General idea A two-team continuous 1D force-displacement contest. Teams generate synchronized pulling surges and manage ground grip traction against fatigue degradation. The rope's central position moves dynamically based on net instantaneous force differentials across discrete simulation ticks until a defined spatial displacement threshold is crossed. ## Formal model - **Abstraction taken:** The complex continuous biomechanics of multi-person traction and rope elasticity are abstracted into an aggregate net force vector acting on a 1D scalar position x(t)∈[−Xwin,+Xwin], with x(0)=0. Team pulling power is modeled as the product of individual agent strength, remaining stamina, and a cadence synchronization factor. - **Player/agent count:** 2 teams (Team A, Team B), each with K agents (K≥1, standard K=6). - **Turn model:** Real-time ticked simulation (e.g. Δt=0.5 seconds per tick). ## Formal rules R1. Setup: - 1D displacement state x(0)=0.0. Target win threshold Xwin=2.5 metres. - Team A pulls toward −Xwin; Team B pulls toward +Xwin. - Each agent i has Strength Si>0, Grip Gi∈[0.7,1.0], and initial Stamina Ei(0)=100. R2. Pull Action: - At each tick t, each team captain may select an effort regime Mode∈{SustainedPull,SurgePulse,AnchorBrace}. - Individual agent force output: fi(t)=Si⋅Gi⋅Ei(t)100⋅μ(Mode). - `SustainedPull`: μ=1.0, Stamina cost ΔE=−1.0. - `SurgePulse`: μ=1.5, Stamina cost ΔE=−3.5, introduces synchronization check. - `AnchorBrace`: μ=0.6 (acting as resistive friction multiplier 1.4), Stamina cost ΔE=−0.4. R3. Team Force Aggregation and Synchronization: - [gap-fill] Team synchronization factor ηteam∈[0.8,1.0] depends on team coordination attribute: η=1.0−0.05⋅Variance(Eagents). - Aggregate Team A force: FA(t)=ηA⋅∑i∈Team Afi(t). - Aggregate Team B force: FB(t)=ηB⋅∑j∈Team Bfj(t). R4. Spatial State Update: - Net force ΔF(t)=FB(t)−FA(t). - [gap-fill] Rope position updates as x(t+1)=x(t)+α⋅ΔF(t)+𝒩(0,σslip2), where α=0.005 m/N. R5. Win Conditions: - If x(t)≤−Xwin: Team A wins the pull. - If x(t)≥+Xwin: Team B wins the pull. R6. [gap-fill] Time / Exhaustion Cap: - If simulation reaches Tmax=120 ticks without crossing Xwin, the team with x(t) displaced in their favorable direction wins on distance; if x(Tmax)==0.0, team with higher remaining total stamina wins. ## Edge cases - Tie at the end condition: Fully resolved by R6 time cap distance/stamina tiebreaker. - A player with no legal move: Not applicable — effort regime action is continuous and always defined. - Repetition / cycles: Bounded: Stamina monotonically decays over time, causing asymmetric force degradation; Tmax=120 strictly terminates prolonged stalemates. - Simultaneous claims on the same resource or position: The rope position is a shared scalar updated simultaneously by the net force vector. - Player elimination mid-round; turn order repair: If an agent disconnects, their force contribution drops to 0, dynamically weakening their team without halting the simulation. - Resource exhaustion: Stamina floors at 0 (agents can only pull at minimal baseline force μ⋅0.2). - Termination guarantee: Enforced by finite spatial bounds ±Xwin combined with the Tmax hard time cap. ## State representation - Persistent state: Team rosters, agent base attributes (Si,Gi), team match scores (ScoreA,ScoreB). - Per-tick ephemeral state: Current displacement x(t), remaining agent stamina arrays [EA],[EB], active effort modes (ModeA,ModeB), net force ΔF. - Observable information: Fully observable — rope position x(t), team effort modes, and visible fatigue are public. ## Action space - `set_pull_mode(mode_type)`: Executed by team captain each tick (SustainedPull,SurgePulse,AnchorBrace). ## Playability notes - Single-player-vs-AI: Highly playable — Human acts as team captain timing tactical surges (bursting when the opponent is fatigued or resting in anchor brace) against an AI squad. - Group games (n>4): Reduces cleanly to 2 agents (1v1 single pullers) by setting K=1, or supports full multi-agent squads natively. - Physical-skill games: Dynamic muscular traction is abstracted into discrete stamina budgeting and surge timing. - What is lost: The physical burning sensation of rope friction on palms, the mud-splattering grip under boots, and the raw collective shouting are formalized into numerical vectors. ## Implementation hints Extremely simple 1D physics integration model. State is a single float x and two stamina arrays. Suggested first milestone: implement the 1D displacement loop with contrasting surge vs sustain strategies and verify that fatigue curves produce realistic tug dynamics.

Download as JSON

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

Download JSON
Cite this page

Tug of War (Bulgaria). (n.d.). Games of Countries. https://gamesofcountries.com/games/bg-bulgaria/darpane-na-vazhe

@misc{gamesofcountries-bg-bulgaria-darpane-na-vazhe,
  title = {Tug of War (Bulgaria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/bg-bulgaria/darpane-na-vazhe}
}