Formal Specification
Yanshui Beehive Fireworks Festival Challenge — Formal Specification
Taiwan · festival-ritual · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Yanshui Fengpao — AI-optimized specification
## General idea
A traditional festival ritual endurance and courage challenge modeling the Yanshui Beehive Fireworks Festival (*Kiâm-chúi phang-phàu*). Participants clad in protective gear confront multi-tiered rocket fortresses (*phang-phàu-siâⁿ*) discharging tens of thousands of screaming bottle rockets at point-blank range, managing body orientation, rhythmic jumping, and gear integrity to maximize spiritual blessing scores without sustaining thermal injury.
## Formal model
- **Abstraction taken:** Chaotic multi-rocket ballistics, spark combustion, and acoustic shockwaves are abstracted into a 2D spatial grid barrage density field where participants choose distance, orientation, and protective stance actions across discrete rocket discharge waves.
- **Player/agent count:** 1 to participants (evaluated individually or in cooperative palanquin escort squads).
- **Turn model:** Wave-based discrete event simulation (a fortress ignition consists of sequential barrage waves of 1.0 second each).
## Formal rules
R1. **Barrage Field & Fortress Specs:**
- Field is a 1D/2D standoff zone with distance from the launcher fortress.
- Fortress contains rockets distributed over 10 discharge waves ().
- Rocket density at distance : .
R2. **Participant Equipment & Resilience:**
- `helmet_integrity`: (resists head strikes).
- `suit_integrity`: (thick denim/cotton fire resistance).
- `neck_protection`: (towel wrap sealing).
- `courage_blessing`: (accumulated divine fortune score).
- `pain_tolerance`: (exhaustion / panic gauge).
R3. **Participant Actions (Per Wave):**
- `Stand Distance`: choose standoff distance .
- `Body Stance`:
- `Face-Forward (正面迎炮)`: Multiplies blessing gain by ; increases suit wear by .
- `Turn-Back (背向防禦)`: Multiplies blessing gain by ; reduces suit wear by .
- `Rhythmic Jump (原地跳躍 / 跳炮)`: Toggle boolean; prevents rockets from lodging in clothing folds (reduces burn chance by , drains stamina).
R4. [gap-fill] **Impact & Blessing Evaluation:**
For each wave :
- Direct rocket impacts .
- Divine Blessing gained:
- Gear wear: ; .
- If gear integrity reaches 0 while receiving hits, participant incurs burn damage .
R5. [gap-fill] **Panic / Retreat Condition:**
If pain tolerance falls to 0 (or participant executes `retreat_to_safety()`), the agent flees the barrage zone. Blessing accumulation halts for that fortress.
R6. [gap-fill] **Challenge Conclusion & Victory:**
A full festival consists of 3 sequential fortress discharges of increasing magnitude (Small Medium Mega-Fortress). The participant with the highest cumulative `courage_blessing` score who completes all 3 fortresses without suffering incapacitating burns wins the trial.
## Edge cases
- **Tie at the end condition:** Broken by closest average standoff distance , then by highest remaining suit integrity.
- **A player with no legal move:** On every wave, agents always possess stance, jump, and distance selection actions.
- **Repetition / cycles:** Waves advance strictly from to 10 per fortress.
- **Simultaneous claims on the same resource or position:** Crowd spatial density allows multiple participants to occupy equivalent distance radii.
- **Player elimination mid-round:** If an agent flees or incurs gear failure, their current score is frozen and they sit out remaining waves.
- **Resource exhaustion:** Rockets per fortress are finite and completely spent after 10 waves.
- **Termination guarantee:** Guaranteed by finite wave sequence ( total waves).
## State representation
- **Persistent state:**
- `participants`: list of `{id, blessing_score, total_hits_taken, fortresses_cleared}`.
- `current_fortress_index`: integer in .
- **Per-wave ephemeral state:**
- `wave_index`: integer in .
- `rocket_density`: float.
- `participant_states`: array of `{distance, stance, is_jumping, suit_hp, helmet_hp, pain_tolerance}`.
- **Observable information:** Fully observable wave intensity, fortress size, and personal gear status.
## Action space
- `set_barrage_response(distance, stance, jump_toggle)`:
- *Parameters:* , , .
- `retreat_to_safety()`: Bailout action to prevent injury.
## Playability notes
- **Single-player-vs-AI:** Highly playable risk-reward optimization game; AI agent balances proximity to the explosive barrage against non-linear gear degradation and panic thresholds.
- **Group games (n>4):** Scales to arbitrary crowd sizes evaluated via independent risk-exposure functions.
- **Physical-skill games:** Physical sensory shock and heat endurance are formalized into gear durability budgets and Poisson impact distributions.
- **What is lost in the adaptation:** Deafening concussive sound waves vibrating through the skull, sulfur smoke smell, and visceral primal adrenaline.
## Implementation hints
- Model wave impacts via Poisson random variables with distance decay.
- Simple Markov decision process with health/gear budget constraints.
- Suggested first milestone: Implement single-fortress 10-wave simulation with stance selection, impact calculation, and blessing scoring.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Yanshui Beehive Fireworks Festival Challenge (Taiwan). (n.d.). Games of Countries. https://gamesofcountries.com/games/tw-taiwan/yanshui-fengpao
@misc{gamesofcountries-tw-taiwan-yanshui-fengpao,
title = {Yanshui Beehive Fireworks Festival Challenge (Taiwan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/tw-taiwan/yanshui-fengpao}
}