Formal Specification
Portuguese Tug of War / Jogo da Corda — Formal Specification
Portugal · strength-endurance · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: abstractedGap-fills: 3
# Tração à Corda — AI-optimized specification
## General idea
A continuous physical strength and endurance contest modeled as a procedural tug-of-war tug simulation. Two teams allocate collective stamina and burst force across discrete time ticks to pull a central rope marker past their target line across a best-of-three series.
## Formal model
- **Abstraction taken:** Collective physical neuromuscular force generation and friction on ground are abstracted into a dynamic 1D position variable `x(t)` governed by team effort vectors, fatigue decay, and team rhythm synchronization.
- **Player/agent count:** 2 aggregate agents representing Team A and Team B.
- **Turn model:** Real-time ticked (`dt = 0.5s`, up to 120 ticks per pull [gap-fill]).
## Formal rules
R1. Setup: Central rope marker starts at position `x = 0.0`. Goal thresholds: Team A wins pull at `x <= -2.0m`; Team B wins pull at `x >= +2.0m`. Both teams start with `stamina = 100`.
R2. Each tick `t`, both teams simultaneously select an effort allocation `E in {SUSTAIN, BURST, ANCHOR_LOCK}`.
- `SUSTAIN`: Generates base force `F = 50 + N(0, 5)`, consumes 1 stamina/tick.
- `BURST`: Generates high force `F = 85 + N(0, 8)`, consumes 4 stamina/tick.
- `ANCHOR_LOCK`: Defensive stance; generates resistance `F = 40`, reduces opposing team displacement by 50%, consumes 0.5 stamina/tick [gap-fill].
R3. Dynamic Update per tick:
- Net force `Delta_F = F_B - F_A`.
- Displacement `Delta_x = (Delta_F / 100.0) * (stamina_B / 100.0 - stamina_A / 100.0 + 1.0)`.
- Position update: `x(t + 1) = x(t) + Delta_x * dt`.
R4. Pull Resolution:
- If `x(t) <= -2.0m`: Team A wins the pull.
- If `x(t) >= +2.0m`: Team B wins the pull.
- If tick count reaches 120 (60 seconds) without crossing either threshold, the team with the marker in their territory (`x < 0` for A, `x > 0` for B) wins the pull [gap-fill].
R5. Series Format: A match is played as Best-of-3 pulls. First team to win 2 pulls wins the match.
## Edge cases
- Tie at the end condition: If `x == 0.0` exactly at tick 120, a 30-tick sudden death period with zero stamina reset decides the winner.
- A player with no legal move: Not applicable; effort allocations (`SUSTAIN`, `BURST`, `ANCHOR_LOCK`) are always available.
- Repetition / cycles: Bounded by 120 ticks per pull, guaranteeing each pull ends in at most 60 seconds.
- Simultaneous claims on the same resource or position: Handled smoothly by net force vector subtraction (`F_B - F_A`).
- Player elimination mid-round: If a team disconnects or forfeits, the active team wins the pull and match.
- Resource exhaustion (pieces, tokens, space, time): Stamina depletes to a minimum floor of 10 (preventing divide-by-zero or negative force).
- Termination guarantee: Strictly enforced 120-tick cap per pull and maximum 3 pulls per match guarantee termination.
## State representation
- Persistent state: `match_score: [int, int]` (pulls won), `current_pull: int (1..3)`.
- Per-pull state: `rope_position: float`, `stamina: [float, float]`, `tick: int (0..120)`.
- Minimal observable information: Fully observable public physical state.
## Action space
- `allocate_effort(action: Enum)`: where `action in {SUSTAIN, BURST, ANCHOR_LOCK}`.
## Playability notes
- Single-player-vs-AI: Procedural stamina management game against AI pacing.
- Group games (n>4): Teams reduced to aggregate decision units.
- Physical-skill games: Non-simulable native essence; tactical layer reduced to burst timing and fatigue preservation.
- What is lost in the adaptation: Raw physical muscular burn, hand grip blister pain, foot traction slipping, and communal crowd roar.
## Implementation hints
1D dynamic numerical integrator with 3 discrete action choices per tick. Suggested milestone 1: Implement 120-tick loop with net force integration and verify Best-of-3 match termination.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Portuguese Tug of War / Jogo da Corda (Portugal). (n.d.). Games of Countries. https://gamesofcountries.com/games/pt-portugal/tracao-a-corda
@misc{gamesofcountries-pt-portugal-tracao-a-corda,
title = {Portuguese Tug of War / Jogo da Corda (Portugal)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pt-portugal/tracao-a-corda}
}