Skip to main content
Formal Specification

Gunpowder Equestrian Charge — Formal Specification

Algeria · equestrian-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Fantasia / Laab el-Baroud — AI-optimized specification ## General idea A cooperative timing and formation-alignment equestrian game. A squadron of riders accelerates in parallel along a linear course, maintaining spatial alignment while preparing muskets, and executes a simultaneous trigger-pull action at a target line. The squadron score is determined by alignment tightness, speed maintenance, and trigger time variance. ## Formal model - **Abstraction taken:** Continuous physical galloping and black-powder ignition are modeled as a discrete-tick linear sprint (10 ticks, representing the 200m track) with continuous timing offsets on the final trigger tick. - **Player/agent count:** 1 team of 8 agents (or 2 competing teams evaluated sequentially). - **Turn model:** 10 synchronized simulation ticks per charge run. ## Formal rules R1. Setup: 8 rider agents start at position `x_i = 0` with initial velocity `v_i = 0` and trigger readiness `R_i = 0`. R2. Ticks 1 to 8 (Acceleration & Alignment Phase): - Each tick, each agent selects acceleration `a_i in [1.0, 3.0]`. - Spatial position updates: `x_i(t+1) = x_i(t) + v_i(t)`. - Alignment penalty: `AlignmentDelta(t) = max(x_i) - min(x_i)`. If `AlignmentDelta(t) > 3.0m`, team receives a penalty. - Weapon cocking action: Agents must execute `ready_musket()` between ticks 5 and 7 (`R_i = 1`). R3. Tick 9 (The Salvo Call): The commander agent issues `fire_signal(t_target)`. R4. Tick 10 (Discharge Execution): - Each rider agent executes `fire(t_offset)`. - Synchronization Error `SyncError = sigma(t_offset)` (standard deviation of fire times across all 8 agents). - If any agent did not cock the musket (`R_i == 0`), a misfire penalty of `+50 points` is added. R5. Scoring Calculation: - `TotalScore = (100 - AvgAlignmentDelta * 5) + (SpeedScore) - (SyncError * 20) - Penalties`. R6. [gap-fill] Deciding Winner: In a competitive tournament of 2 squadrons, each squadron performs 3 charge runs; the squadron with the highest cumulative score wins. ## Edge cases - Tie at the end condition: [gap-fill] If cumulative scores are tied within 0.1 points after 3 runs, the squadron with the lowest single-run `SyncError` wins. - A player with no legal move: Not applicable; acceleration and fire commands are always valid. - Repetition / cycles: Bounded strictly by the 10-tick charge limit per run. - Simultaneous claims on the same resource or position: Handled by dedicated lateral lane assignments (riders occupy lanes 1 to 8). - Player elimination mid-round; turn order repair: If an agent experiences a critical fall (simulated with 1% probability under extreme speed delta), the run is scored with an incomplete formation penalty. - Resource exhaustion: Musket charge is single-use per run; 10-tick run decrements monotonically. - Termination guarantee: Enforced by the 10-tick hard cap. ## State representation - Persistent state: `squadron_scores = [float, float]`, `run_index in [1..3]`. - Per-tick state: `rider_positions = Array[8][float]`, `rider_velocities = Array[8][float]`, `musket_ready = Array[8][bool]`. - Observability: Complete visibility of squadmate positions, velocities, and commander signals. ## Action space - `accelerate(a_val)`: Adjust horse velocity. - `ready_musket()`: Arm the flintlock. - `fire(offset_ms)`: Execute trigger pull relative to commander signal. ## Playability notes - Single-player-vs-AI: The human player acts as the lead commander (*m'qaddem*), timing the charge and firing signal while AI sub-agents strive to match pace. - Group games (n>4): Squadrons evaluated on collective harmony rather than zero-sum elimination. - Physical-skill games: Parameterized via trigger-timing precision distributions and horse stability noise. - What is lost: The visceral smell of black powder smoke, the thundering rumble of hooves, and the blinding muzzle flash. ## Implementation hints 1D physics integrator coupled with a multi-agent timing synchronization evaluation. First milestone: implement 8-agent parallel sprint with lane bounds and synchronization variance calculation.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Gunpowder Equestrian Charge (Algeria). (n.d.). Games of Countries. https://gamesofcountries.com/games/dz-algeria/fantasia-algeria

@misc{gamesofcountries-dz-algeria-fantasia-algeria,
  title = {Gunpowder Equestrian Charge (Algeria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/dz-algeria/fantasia-algeria}
}