Formal Specification
The Dibra Fortress — Formal Specification
Kosovo · strength-endurance · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Kala Dibrançe — AI-optimized specification
## General idea
An asymmetric team contest where a Defending team forms a structural weight-bearing chain while an Attacking team performs sequential vaulting actions to mount the chain. Attackers must distribute weight without slipping or falling off, while defenders must withstand cumulative mechanical pressure. If all attackers mount successfully, a terminal finger-guessing challenge or timed hold resolves role retention versus role reversal.
## Formal model
- **Abstraction taken:** The continuous physical vaulting and spinal loading are discretized into a sequence of individual vault actions followed by a structural stability check.
- **Structural Model:** The fortress has total weight tolerance . Each mounted attacker adds weight and impact load .
- **Player counts:** 2 teams (Team Defending vs Team Attacking), agents per team (default ).
- **Turn model:** Sequential vaulting phase () followed by a simultaneous guessing/hold phase.
## Formal rules
R1. **Initial Setup:** Match winning score threshold . Scores . Initial attacking team selected uniformly at random [gap-fill].
R2. **Fortress Initialization:** Defending team forms positions . Base strength capacity . Current load .
R3. **Vault Sequence:** For each attacking agent in order:
- Agent selects target position index and vault aggression .
- [gap-fill] Probability of successful landing without ground touch:
- If landing fails (): Attack fails immediately. Defending team earns point and teams swap roles for the next round.
- If landing succeeds: Current load increases: .
- Structural collapse check: If , fortress collapses. Attackers earn point and retain attacking role for the next round. Round terminates.
R4. **Terminal Resolution (All Mounted):** If all attackers successfully mount and :
- Attacking captain chooses secret integer .
- Defending captain guesses integer .
- If : Defending team wins the round, earns point, and teams swap roles for the next round.
- If : Attacking team wins the round, earns point, and retains attacking role for the next round.
R5. **Match Victory:** The first team to reach points wins the match.
## Edge cases
- **Tie at the end condition:** Not applicable; only one team scores in any given round.
- **A player with no legal move:** Not applicable; target position indices and aggression parameters are always available within valid intervals.
- **Repetition / cycles:** In each round, exactly one team scores point regardless of whether the fortress collapses, an attacker slips, or the guess succeeds/fails. Thus, the match monotonically advances toward and cannot cycle indefinitely.
- **Simultaneous claims on the same resource or position:** Attackers vault sequentially (); multiple attackers may share adjacent dorsal positions with additive load penalties.
- **Player elimination mid-round / turn order repair:** If an individual attacker slips during the vault sequence, the entire round immediately terminates with a defensive win; no mid-round turn order repair is needed.
- **Resource exhaustion:** Not applicable; team rosters and physical parameters are constant throughout the match.
- **Termination guarantee:** Guaranteed by R5 and strictly positive monotonic scoring: each round produces exactly 1 point, so the match provably terminates in at most rounds.
## State representation
- **Persistent state:**
- `score_def`, `score_att`: Integers
- `role_team_A`, `role_team_B`: Enum
- **Per-round ephemeral state:**
- `current_attacker_idx`: Integer
- `accumulated_load`: Float
- `fortress_capacity`: Float
- `mounted_positions`: List of positions occupied by mounted attackers
- **Observable information:**
- Public: scores, role assignments, cumulative load, current attacker index, previous vault outcomes.
- Private: during terminal resolution, attacking captain's finger choice is private until defending captain commits .
## Action space
- `vault(target_pos, aggression)`:
- `target_pos`: Integer .
- `aggression`: Float .
- `set_fingers(count)`: parameter `count` . Precondition: Terminal phase, acting as Attacking Captain.
- `guess_fingers(count)`: parameter `count` . Precondition: Terminal phase, acting as Defending Captain.
## Playability notes
- **Single-player-vs-AI:** Natural. Single human can control the entire attacking squad (selecting vault positions and aggression for each team member) against an AI defending squad.
- **Group games (n>4):** Multi-agent team directly coordinates via individual agent policies or pools under a central captain agent.
- **Physical-skill games:** The balance of aggressive deep-penetration leaps vs safe rear landings models the core physical risk-taking mechanic.
- **What is lost in the adaptation:** The visceral somatic sensation of bearing collective human weight and the physical commotion of team pileups.
## Implementation hints
- Simple linear state machine: Round Start Vault Sequence Loop ( steps) Terminal Guess Score Update.
- First milestone: Implement the sequential vault loop with static probability thresholds and test role reversal on failed vaults.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
The Dibra Fortress (Kosovo). (n.d.). Games of Countries. https://gamesofcountries.com/games/xk-kosovo/kala-dibrance
@misc{gamesofcountries-xk-kosovo-kala-dibrance,
title = {The Dibra Fortress (Kosovo)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/xk-kosovo/kala-dibrance}
}