Skip to main content
Formal Specification

Bamboo Pole Jumping / Bamboo Dance — Formal Specification

Vietnam · dexterity-small · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 4
# Nhảy sạp — AI-optimized specification ## General idea Nhảy sạp is a traditional rhythmic bamboo dance and dexterity game of the Thái and Mường ethnic groups of Northwestern Vietnam. Seated clappers beat parallel transverse bamboo poles against wooden base beams in a steady 4/4 syncopated meter (Counts 1–3 Open, Count 4 Closed Snap). Dancers step, hop, and leap through the linear rack of bamboo lanes, requiring precise rhythmic synchronization to avoid getting their ankles clamped on the fourth beat. ## Formal model - **Abstraction taken:** The continuous physical dance and rhythmic clapping are discretized into a discrete-beat timeline with 4-beat measures. The bamboo apparatus is modeled as a linear array of M discrete lane positions (L0,L1,…,LM,LM+1) [gap-fill: continuous stepping, acrobatic turns, and rhythmic clapper strikes are discretized into a discrete timeline where time advances in 4-beat measures, and the bamboo rack is modeled as an array of M discrete lane positions]. - **Player/agent count:** 1 Jumper agent (solo runner) or 2 Jumper agents (tandem pairs), navigating an environment of M=6 bamboo lanes. - **Turn model:** Strictly synchronized discrete-beat step execution (b∈{1,2,3,4} per measure). ## Formal rules R1. Rack Geometry and Initial State: - Lanes are indexed 0 to M+1 (where L0 is the entry platform, L1..LM are active bamboo lanes, and LM+1 is the exit platform). - Jumper starts at position p=0, state grounded=true, fault counter F=0. - Time is indexed by measure m≥1 and beat b∈{1,2,3,4}. R2. [gap-fill] Clapping Cadence and Lane Obstruction: - On beats b∈{1,2,3}, all active lanes L1..LM are **OPEN** (safe for foot contact). - On beat b=4, all active lanes L1..LM are **CLOSED** (poles snap together; fatal clamping hazard for any grounded feet). - Entry/exit platforms L0 and LM+1 are permanently safe on all beats. R3. [gap-fill] Jumper Action Space and Kinematics: - On every beat b, the active jumper chooses one action a∈{STEP_FWD,STEP_BACK,HOP_IN_PLACE,AERIAL_LEAP}: - STEP_FWD: p←min⁡(M+1,p+1),grounded←true. - STEP_BACK: p←max⁡(0,p−1),grounded←true. - HOP_IN_PLACE: p←p,grounded←true. - AERIAL_LEAP: p←p,grounded←false (jumper jumps vertically airborne for beat b, landing grounded on beat b+1). R4. Fault Detection and Penalties: - If at beat b=4, jumper is in an active lane (1≤p≤M) and grounded=true: - Jumper is clamped by the closing poles (`FAULT` event). - Fault counter increments: F←F+1. - Jumper is reset to platform L0. R5. [gap-fill] Traversal Scoring and Stage Progression: - A full forward-and-back traversal consists of moving from L0→LM+1, then turning and returning LM+1→L0. - Each completed clean traversal awards +1 point (S←S+1). - The trial consists of 5 stages with escalating tempo (reducing decision timeout per beat). - Accumulating F=3 faults terminates the trial immediately. R6. Victory Condition: - The agent wins and achieves a Master Dancer ranking by completing all 5 stages with F<3. ## Edge cases - Tie at the end condition: In competitive duel format, the agent with higher completed stages / points wins; ties broken by fewer total faults F. - A player with no legal move: Not applicable; all 4 movement/leap actions are always available. - Repetition / cycles: Bounded by the 5-stage completion target or 3-fault termination rule (R5). - Simultaneous claims on the same resource or position: In tandem 2-player mode, both jumpers occupy the same lane simultaneously if they maintain synchronized identical movement. - Player elimination mid-round; turn order repair: A jumper reaching F=3 is eliminated, ending their run. - Resource exhaustion: Beat counter increments monotonically; no consumable physical resource. - Termination guarantee: why the game provably ends: Bounded by maximum stage count (5 stages ≈80 measures) or 3-fault elimination. ## State representation - Persistent state: - `jumper_score`: non-negative integer. - `fault_count`: integer ∈[0,3]. - `current_stage`: integer ∈[1,5]. - `traversal_direction`: enum `{FORWARD, BACKWARD}`. - Per-round ephemeral state: - `current_measure`: integer m≥1. - `current_beat`: integer b∈{1,2,3,4}. - `jumper_pos`: integer p∈[0,M+1]. - `is_grounded`: boolean. - Observable information: - Fully observed by agent: current beat b, position p, fault count, and stage tempo. ## Action space - `step(direction)`: direction ∈{FORWARD,BACKWARD,IN_PLACE}. - `aerial_leap()`: executes vertical jump over closed beat. ## Playability notes - Single-player-vs-AI: Highly natural as a rhythmic precision and timing platformer; human/AI executes step sequences against the automated 4/4 clapping engine. - Group games (n>4): The traditional social game features lines of couples dancing simultaneously; reducible cleanly to a 1-agent or 2-agent tandem obstacle run without losing rhythmic mechanics. - Physical-skill games: Physical foot-eye coordination and dance rhythm are mapped directly into the discrete beat-matching action choices. - What is lost in the adaptation: The live auditory clang of bamboo woodblocks, festive evening bonfire atmosphere, and flowing traditional silk garments. ## Implementation hints - Implement as a discrete rhythmic state machine. - Each beat can trigger an event-driven tick in a game loop. - Suggested first milestone: Implement R1–R4 with M=6 lanes and verify that an optimal agent stepping every beat and leaping on beat 4 traverses L0→L7 in exactly 8 beats without faults.

Download as JSON

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

Download JSON
Cite this page

Bamboo Pole Jumping / Bamboo Dance (Vietnam). (n.d.). Games of Countries. https://gamesofcountries.com/games/vn-vietnam/nhay-sap

@misc{gamesofcountries-vn-vietnam-nhay-sap,
  title = {Bamboo Pole Jumping / Bamboo Dance (Vietnam)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/vn-vietnam/nhay-sap}
}