Formal Specification
Long Donkey / Leapfrog Chain — Formal Specification
North Macedonia · strength-endurance · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: abstractedGap-fills: 5
# Долга магарица — AI-optimized specification
## General idea
A physical team endurance and precision vaulting game. One team forms a rigid, multi-agent structural chain ("the long donkey") anchored against a wall. Vaulters sequentially run and leap onto the chain, distributing their weight along the segments. The round resolves based on whether the chain collapses under cumulative physical stress, whether a vaulter faults upon landing, or whether the chain holds firm through a countdown.
## Formal model
- **Abstraction taken:** The defending chain of bent-over players is modeled as a 1D array of connected segments , each with a base load tolerance and balance state . Each vaulter executes a leap parameterized by run-up momentum and landing target index .
- **Player/agent count:** 2 teams () of agents each () + 1 neutral referee agent.
- **Turn model:** Sequential vaulting phase (vaulters ) followed by a static hold resolution phase.
## Formal rules
R1. **Setup:** Chain initialized with segments where is braced against the anchor wall. Each segment has load capacity and current load . Structural health .
R2. **Vaulting Execution:** Vaulters line up in queue . On turn , vaulter (weight ) submits action `leap_onto_chain(target_index, power)` where and .
R3. **Landing Resolution:**
- The actual landing segment is sampled: .
- Landing stability check: If is already occupied by vaulters, vaulter commits a balance slip with . If a slip occurs, touches the ground: the vault phase ends immediately with a Rider Fault.
R4. **Structural Load & Chain Stress:**
- Upon successful landing on , segment load increases: .
- The structural stress damage on the chain is computed: .
- Chain health updates: .
- If : The donkey collapses. Vaulters win the round immediately and score point.
R5. **Hold & Count Phase:** If all vaulters mount successfully without a slip and :
- The referee executes a 10-tick countdown. Each tick inflicts static fatigue damage on .
- If after 10 ticks: The donkey team successfully withstands the load, scores point, and roles swap ().
R6. [gap-fill] Rider Fault Role Swap:** If any vaulter commits a landing fault or ground touch, scores point and roles swap immediately.
R7. [gap-fill] Match Win Condition:** The first team to accumulate points upon an even number of half-innings wins the match.
R8. [gap-fill] Sliding Prohibition:** Once an agent lands on segment , their position is locked; forward crawling is disallowed by engine state validation.
## Edge cases
- Tie at the end condition: If both teams reach 5 points in the same round, an extra sudden-death round is played [gap-fill].
- A player with no legal move: `leap_onto_chain` is always valid for the active vaulter in queue.
- Repetition / cycles: Bounded; every round consists of at most leap actions and a 10-tick hold, yielding deterministic round termination.
- Simultaneous claims on the same resource or position: Vaulters leap strictly one at a time in queue order.
- Player elimination mid-round: If a player disconnects, their agent weight is treated as an average constant .
- Resource exhaustion: Chain segments are persistent across the round and reset between rounds.
- Termination guarantee: [gap-fill] Monotonic queue advancement and finite hold timer guarantee that every round terminates within ticks.
## State representation
- **Persistent state:** Team scores , active team role assignments, match rounds.
- **Per-round ephemeral state:** Chain structural health , segment load vector , occupant count per segment, active vaulter queue index .
- **Observable information:** Fully observable; all segment loads, chain health, and rider positions are public.
## Action space
- `leap_onto_chain(target_index, power)`: Parameters `target_index` , `power` . Precondition: caller is the active vaulter in queue.
## Playability notes
- Single-player-vs-AI: Playable as a timing/target mini-game where the player chooses optimal landing segments to maximize chain stress without overloading a single spot and slipping.
- Group games (n>4): Natively accommodates 4v4 to 8v8 teams using the 1D segment array model.
- Physical-skill games: Running velocity, hand placement, and balance recovery are abstracted into scalar target sampling and load thresholds.
- What is lost in the adaptation: The visceral bone-jarring impact of bodies colliding and the boisterous laughter of collapsing human piles.
## Implementation hints
Low-to-medium complexity. The mechanics require a 1D array of structural capacities and a straightforward queue state machine. First milestone: implement R1–R5 with deterministic weights and verify that chain collapse and hold timers trigger correct score updates.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Long Donkey / Leapfrog Chain (North Macedonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/mk-north-macedonia/dolga-magarica
@misc{gamesofcountries-mk-north-macedonia-dolga-magarica,
title = {Long Donkey / Leapfrog Chain (North Macedonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mk-north-macedonia/dolga-magarica}
}