Formal Specification
Sinj Alka Tournament — Formal Specification
Croatia · animal-contest · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Sinjska alka — AI-optimized specification
## General idea
A sequential equestrian target-piercing tournament where agents gallop along a 160-meter track within a strict 12-second time window, aiming a 3-meter lance at a partitioned hanging ring target. Scoring is segmented into discrete point compartments (3, 2, 1, 0) over three standard runs, with sudden-death runoffs resolving ties for the championship.
## Formal model
- **Abstraction taken:** Gallop velocity along the 160m track is abstracted into a travel time s. Lance tip position at target crossing relative to target center is modeled as a 2D Gaussian landing distribution parameterized by rider aiming skill, horse stability, and speed.
- **Player/agent count:** agents (, with , standard ).
- **Turn model:** 3 sequential tournament rounds (trke); within each round, agents run in fixed sequence .
## Formal rules
R1. Setup:
- Target geometry centered at :
- Center circle (*Srida*, mm): Value = 3 points.
- Upper sector (*Gornji pregradak*, mm, ): Value = 2 points.
- Lower left/right sectors (*Donja dva*, mm, ): Value = 1 point each.
- Outer miss ( mm or drop): Value = 0 points.
- Cumulative score for all .
R2. Run Execution:
- Active agent executes `gallop_and_strike(aim_offset_x, aim_offset_y, gallop_effort)`.
- Gallop time: .
- Time validity check: If s, run is INVALID ().
R3. Target Intersection:
- If valid time, lance tip coordinate .
- Compartment test evaluates point value .
- State update: .
R4. Tournament Progression:
- All agents execute Run 1, then Run 2, then Run 3. Total regular runs = 3.
R5. Tie-Breaker (*Pripetavanje*) and Victory:
- Let top score be .
- Candidate set .
- If : Sole agent in is crowned WINNER (*slavodobitnik*).
- If : Tied agents execute extra runoff runs in sequence until one agent achieves a higher score in the same runoff round.
- [gap-fill] Maximum runoff rounds capped at ; if still tied, the agent with the highest single run score (most 3s) wins.
## Edge cases
- Tie at the end condition: Fully resolved by statutory runoff rules (*pripetavanje*) and tie-breaking cap.
- A player with no legal move: Not applicable; run action is mandatory and always executable.
- Repetition / cycles: Bounded by finite 3-run base and maximum runoff limit .
- Simultaneous claims on the same resource or position: Runs occur in strict individual sequence down the track.
- Player elimination mid-round; turn order repair: If an alkar is disqualified or horse lame, score remains as recorded; agent is skipped in remaining runs.
- Resource exhaustion: The alka target is repositioned at identically for every run.
- Termination guarantee: Exact 3-run base with bounded runoff cap guarantees finite termination.
## State representation
- Persistent state: `scores: list[int]`, `run_index: int`, `active_agent_idx: int`, `runoff_candidates: list[int]`.
- Ephemeral turn state: `gallop_time: float`, `lance_coord: tuple[float, float]`, `points_scored: int`.
- Observable information: Fully observable (all run times, point announcements, and scores are public).
## Action space
- `execute_run(target_aim: tuple[float, float], speed_effort: float)`: Parameterized equestrian lance strike.
## Playability notes
- Single-player-vs-AI: Natural; player competes against full field of 14 AI knights aiming to hit the 3-point center.
- Group games (n>4): Natively designed for 11 to 17 agents.
- Physical-skill games: Gallop velocity, track time limit, and micro-accuracy mapped to 2D normal distribution.
- What is lost: Thunderous horse hooves, festive cannonades, medieval knightly costumes.
## Implementation hints
Discrete round tournament engine with continuous 2D geometry hit-testing. First milestone: implement 3-round tournament with random agent skills and statutory tie-breaking logic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sinj Alka Tournament (Croatia). (n.d.). Games of Countries. https://gamesofcountries.com/games/hr-croatia/sinjska-alka
@misc{gamesofcountries-hr-croatia-sinjska-alka,
title = {Sinj Alka Tournament (Croatia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/hr-croatia/sinjska-alka}
}