Formal Specification
Sack Race — Formal Specification
Estonia · strength-endurance · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 8
# Kotijooks (Sack Race) — AI-optimized specification
## General idea
A synchronous, risk-reward hopping race where competitors advance inside restrictive burlap sacks along parallel linear tracks. Each tick, agents balance forward hop magnitude against the stochastic probability of tripping and falling, where falls incur recovery penalties but do not eliminate the racer.
## Formal model
- **Abstraction taken:** The continuous biomechanics of two-footed enclosed sack jumping are discretized into time ticks where agents select jump intensity levels, each mapped to a distance distribution and a fall risk probability. Fall recovery is modeled as a multi-tick recovery state.
- **Player/agent count:** Racers ().
- **Turn model:** Synchronous discrete ticks until the first racer crosses the finish line.
## Formal rules
R1. Track Geometry and Setup:
- Linear race track of distance [gap-fill: track length standardized to 25m].
- Each racer occupies a parallel lane with progress coordinate , initialized to .
- Status for all racers initialized to `UPRIGHT`.
R2. Jump Action Selection:
- On each tick, an `UPRIGHT` racer selects a jump mode :
1. `SAFE_HOP`: Advances ; Fall risk .
2. `STANDARD_HOP`: Advances ; Fall risk .
3. `POWER_BOUND`: Advances ; Fall risk .
- [gap-fill: parameters for advance distance and fall probabilities].
R3. Fall and Recovery Mechanics:
- If a fall check triggers ():
- Agent's progress on that tick is truncated to ().
- Agent enters status `FALLEN` with recovery timer ticks [gap-fill: recovery duration fixed at 2 ticks].
- While `FALLEN`, the agent cannot jump; each tick decrements until it reaches , restoring status to `UPRIGHT`.
R4. Boundary and Movement Update:
- For non-falling racers, position updates: .
R5. Win and Finish Resolution:
- The race terminates at the end of any tick where at least one racer satisfies .
- The winner is the agent with at the terminating tick.
- [gap-fill: If multiple agents cross on the exact same tick with identical progress, victory is shared as a tie].
R6. [gap-fill: A hard tick limit ticks terminates the race if no racer crosses , awarding victory to the furthest progress].
## Edge cases
- Tie at the end condition: Multiple racers crossing on the same tick ranked by greatest excess displacement past ; exact ties share rank per R5 [gap-fill: displacement tiebreaker].
- A player with no legal move: Not applicable; upright agents choose from 3 hop modes; fallen agents auto-recover.
- Repetition / cycles: Progress is monotonically non-decreasing (), and falls are temporary, ensuring forward progression bounded by [gap-fill: cycle bound via non-decreasing displacement and tick cap].
- Simultaneous claims on the same resource or position: Racers occupy dedicated parallel lanes; no lane interference or physical collisions occur.
- Player elimination mid-round; turn order repair: Racers are never eliminated on a fall, only delayed by the recovery timer.
- Resource exhaustion: Not applicable; no consumable fuel or tokens.
- Termination guarantee: Since and is non-decreasing, racers make positive expected progress ; bounded absolutely by [gap-fill: termination guarantee via positive expected progress and tick cap].
## State representation
- Persistent state:
- `racers`: Array of agent states.
- `winner_id`: Agent ID of champion (or `None`).
- Per-tick ephemeral state:
- `positions`: Map of Agent ID .
- `racer_status`: Map of Agent ID .
- `recovery_timers`: Map of Agent ID .
- `tick_counter`: Integer .
- Observable information: Fully observable positions and statuses of all racers in parallel lanes.
## Action space
- `hop(mode)`: Choose `SAFE_HOP`, `STANDARD_HOP`, or `POWER_BOUND` (valid when `UPRIGHT`).
- `recover()`: Decrement recovery timer (valid when `FALLEN`).
## Playability notes
- Single-player-vs-AI: Highly playable push-your-luck racing game against heuristic or risk-seeking AI opponents.
- Group games (n>4): Generalizes naturally to any count without rule modification.
- Physical-skill games: Dynamic balance and enclosed leg agility are parameterized as discrete jump modes with stochastic fall hazards.
- What is lost in the adaptation: The hilarious visual spectacle of human burlap sack tumbling and the physical muscle burn in the calves.
## Implementation hints
Extremely simple 1D state array. First milestone: Implement simultaneous step resolution and fall recovery loops before tuning jump distribution parameters.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sack Race (Estonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ee-estonia/kotijooks
@misc{gamesofcountries-ee-estonia-kotijooks,
title = {Sack Race (Estonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ee-estonia/kotijooks}
}