Formal Specification
Bamboo Pole Jumping / Bamboo Dance — Formal Specification
Vietnam · dexterity-small · Confidence: low
← Back to game pageImplementation 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 discrete lane positions () [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 bamboo lanes.
- **Turn model:** Strictly synchronized discrete-beat step execution ( per measure).
## Formal rules
R1. Rack Geometry and Initial State:
- Lanes are indexed to (where is the entry platform, are active bamboo lanes, and is the exit platform).
- Jumper starts at position , state , fault counter .
- Time is indexed by measure and beat .
R2. [gap-fill] Clapping Cadence and Lane Obstruction:
- On beats , all active lanes are **OPEN** (safe for foot contact).
- On beat , all active lanes are **CLOSED** (poles snap together; fatal clamping hazard for any grounded feet).
- Entry/exit platforms and are permanently safe on all beats.
R3. [gap-fill] Jumper Action Space and Kinematics:
- On every beat , the active jumper chooses one action :
- : .
- : .
- : .
- : (jumper jumps vertically airborne for beat , landing grounded on beat ).
R4. Fault Detection and Penalties:
- If at beat , jumper is in an active lane () and :
- Jumper is clamped by the closing poles (`FAULT` event).
- Fault counter increments: .
- Jumper is reset to platform .
R5. [gap-fill] Traversal Scoring and Stage Progression:
- A full forward-and-back traversal consists of moving from , then turning and returning .
- Each completed clean traversal awards +1 point ().
- The trial consists of 5 stages with escalating tempo (reducing decision timeout per beat).
- Accumulating faults terminates the trial immediately.
R6. Victory Condition:
- The agent wins and achieves a Master Dancer ranking by completing all 5 stages with .
## 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 .
- 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 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 measures) or 3-fault elimination.
## State representation
- Persistent state:
- `jumper_score`: non-negative integer.
- `fault_count`: integer .
- `current_stage`: integer .
- `traversal_direction`: enum `{FORWARD, BACKWARD}`.
- Per-round ephemeral state:
- `current_measure`: integer .
- `current_beat`: integer .
- `jumper_pos`: integer .
- `is_grounded`: boolean.
- Observable information:
- Fully observed by agent: current beat , position , fault count, and stage tempo.
## Action space
- `step(direction)`: direction .
- `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 lanes and verify that an optimal agent stepping every beat and leaping on beat 4 traverses in exactly 8 beats without faults.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite 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}
}