Skip to main content
Formal Specification

Cheung Chau Bun Scrambling Competition — Formal Specification

Hong Kong · festival-ritual · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 4
# Coeng Baau Saan — AI-optimized specification ## General idea A high-stakes simultaneous time-budget optimization and resource-harvesting game based on the Cheung Chau Bun Scrambling competition. Twelve climbing agents ascend a 14-meter conical tower divided into three scoring altitude zones (9-point, 3-point, 1-point buns), managing finite stamina and time to maximize harvested points while ensuring a complete descent before the strict 180-second buzzer to avoid catastrophic disqualification. ## Formal model - **Abstraction taken:** Vertical continuous climbing and manual bun-snatching are formalized as a discrete 1D height grid (h∈[0,14] meters) and a discrete time engine (t∈[1,180] ticks, each tick = 1 second). Physical grip fatigue is modeled via a dynamic stamina resource (S∈[0,100]). - **Player/agent count:** 12 competing agents (or 1..12 in scalable test configurations). - **Turn model:** Simultaneous-move discrete time ticks over a fixed 180-tick horizon. ## Formal rules R1. **Tower Zones & Stock:** The tower spans altitudes h∈[0,14] meters partitioned into three scoring zones: - *Bottom Zone* (h∈[1,5]): Initial pool of 6,300 buns worth 1 point each. - *Middle Zone* (h∈[6,10]): Initial pool of 1,800 buns worth 3 points each. - *Top Zone* (h∈[11,14]): Initial pool of 900 buns worth 9 points each. - *Ground* (h=0): Base mat; safe start and finish zone. R2. **Stamina & Movement:** Each climber begins at h=0 with S=100 stamina points. - Action `ASCEND`: Increases altitude by +1 meter; consumes 2 stamina points. Precondition: h<14 and S≥2. - Action `DESCEND`: Decreases altitude by −1 meter (or rapid slide −2 meters if S≥4); consumes 1 stamina point. - Action `REST`: h unchanged; regenerates +5 stamina (up to Smax⁡=100). R3. **Harvesting Mechanic:** At altitude h≥1, an agent may execute `HARVEST`. - Yield per harvest tick is determined by the zone's available bun density and climber efficiency (1..3 buns/tick). - Harvested buns are added to the climber's private sack; the corresponding zone's global bun stock is decremented. R4. **Disqualification (Buzzer Rule):** The match ends precisely at t=180. Any climber whose altitude is h>0 at t=180 is immediately disqualified (*DQ*), scoring 0 points regardless of sack contents. R5. **Scoring:** For all qualified climbers touching ground (h=0) at or before t=180: Scorei=(9×Buns9)+(3×Buns3)+(1×Buns1) R6. **Victory:** The qualified climber with the highest total Scorei wins the title of King/Queen of Buns. R7. [gap-fill] Altitude discretized to integer meters h∈[0,14], with 1 tick representing 1 physical second (total duration 180 ticks). R8. [gap-fill] Harvest yield model: At current height h, `HARVEST` extracts min⁡(Stockzone,⌊1+2×(Si/100)⌋) buns per tick, consuming 1 stamina point. R9. [gap-fill] Congestion factor: If >4 climbers harvest in the same altitude band simultaneously, per-agent yield is reduced by 50% due to spatial crowding. R10. [gap-fill] Tiebreaker protocol: In the event of identical total points, the tie is broken by: (1) highest total bun count, (2) earliest timestamp t of touching ground (h=0). ## Edge cases - **Tie at the end condition:** Deterministically resolved by R10 (total bun count, then earliest ground-touch timestamp). If still tied, joint victory is awarded. - **A player with no legal move:** When stamina S<2 at h>0, `ASCEND` and `HARVEST` are disabled, but `DESCEND` (cost 1) and `REST` (cost 0) remain legal, guaranteeing a valid escape path. - **Repetition / cycles:** Agents moving up and down without harvesting are bounded by the terminal countdown t=180. - **Simultaneous claims on the same resource or position:** Shared height cells are permitted; bun depletion in a zone is resolved proportionally among active harvesters via R9. - **Player elimination mid-round:** Any climber suffering total exhaustion (S=0) auto-executes forced descent at 1 m/tick until ground contact. - **Resource exhaustion:** If the Top Zone 9-point bun stock reaches 0, agents in h∈[11,14] receive 0 buns on `HARVEST` and must descend to harvest lower zones. - **Termination guarantee:** Guaranteed by the strictly monotonic clock t∈[1,180], with forced match conclusion and score evaluation at t=180. ## State representation - **Persistent state:** `zone_stocks: Dict[zone_id, int]`, `time_limit: 180`. - **Per-player state:** - `altitude: int` (0≤h≤14) - `stamina: float` (0.0≤S≤100.0) - `sack: Dict[int, int]` (counts of 9-point, 3-point, and 1-point buns) - `finished_tick: Optional[int]` - `is_disqualified: bool` - **Per-turn ephemeral state:** `current_tick: int`, `joint_actions: Dict[agent_id, Action]`, `zone_congestion: Dict[int, int]`. - **Observable information:** Fully observable game state: public clock, all climber altitudes, zone remaining stocks, and opponent sack estimates. ## Action space - `ascend()`: Increases altitude h←h+1. Preconditions: h<14, S≥2, t<180, h>0 or starting from ground. - `descend(rapid=False)`: Decreases altitude h←max⁡(0,h−1) (or h←max⁡(0,h−2) if `rapid=True`). Preconditions: h>0, S≥1. - `harvest()`: Collects buns from current zone. Preconditions: h≥1, S≥1, current zone stock >0. - `rest()`: h unchanged, recovers +5 stamina. Preconditions: t<180. ## Playability notes - **Single-player-vs-AI:** Highly playable. Human controls one climber in a multi-agent simulation, balancing risk vs reward against 11 bot agents. - **Group games (n>4):** Naturally supports 12 simultaneous agents. Can be scaled down to 2–4 agents by scaling initial zone bun stocks proportionally. - **Physical-skill games:** Physical climbing prowess and grip endurance are abstracted into stamina curves, ascent rates, and harvest efficiency equations. - **What is lost in the adaptation:** Tactile grip slippage, actual vertical fear, sway of the scaffolding structure, and chaotic physical tangling of limbs are replaced with mathematical stamina mechanics. ## Implementation hints - Pure Markov Decision Process (MDP) / simultaneous game. - State space per agent: (altitude, stamina, sack_pts, sack_count, finished_time). - Strategic sweet spot: Racing to top zone for 9-point buns vs harvesting uncontested 3-point mid-tier buns, factoring in the descent time buffer (at least 7–14 seconds). - First milestone: Single-agent trajectory optimization to find the theoretical maximum bun score within 180 ticks given stamina recharge rates.

Download as JSON

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

Download JSON
Cite this page

Cheung Chau Bun Scrambling Competition (Hong Kong). (n.d.). Games of Countries. https://gamesofcountries.com/games/hk-hong-kong/coeng-baau-saan

@misc{gamesofcountries-hk-hong-kong-coeng-baau-saan,
  title = {Cheung Chau Bun Scrambling Competition (Hong Kong)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hk-hong-kong/coeng-baau-saan}
}