Skip to main content
Formal Specification

1-2-3 Wooden Man (Hong Kong Red Light, Green Light) — Formal Specification

Hong Kong · chase-tag · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Jat Ji Saam Muk Tau Jan — AI-optimized specification ## General idea A spatial freeze-tag and stealth-racing game based on Hong Kong *Jat Ji Saam Muk Tau Jan* (1-2-3 Wooden Man / Red Light, Green Light). Runners sprint toward a home wall while the Tagger chants with their back turned; when the chant abruptly finishes, runners must freeze instantly, as any residual inertia triggers detection and capture, while reaching the base triggers a frantic group escape race back to the starting line. ## Formal model - **Abstraction taken:** Continuous field space is mapped to a 1D spatial axis (x∈[0,20] meters), where x=0 is the Tagger's Base Wall and x=20 is the Runner Starting Baseline. Verbal chant cadence is formalized as a discrete duration choice by the Tagger; physical balance wobble is modeled as a stochastic momentum-deceleration function. - **Player/agent count:** N players (1 Tagger, N−1 Runners, where 3≤N≤9). - **Turn model:** Alternating two-phase cycles: (1) Chant Phase (Tagger commits hidden chant duration Tchant, Runners choose velocity vectors), (2) Freeze Check Phase (Tagger inspects runner states), followed by an optional Escape Pursuit Phase. ## Formal rules R1. **Setup & Roles:** Tagger stands at x=0 facing away (orientation=AWAY). All N−1 Runners start at x=20. Track length L=20 units. R2. **Chant Phase:** - The Tagger chooses chant duration Tchant∈{2,3,4,5} ticks. - Each Runner i chooses an advance speed vi∈{0,1,2,3} units/tick to move toward x=0. - Runner position updates: xi←max⁡(0,xi−vi×Tchant). R3. **Freeze Check Phase:** - At the end of the chant, Tagger spins to face field (orientation=TOWARD). - For each runner, the engine calculates wobble risk Pwobble(vi)=0.15×vi. - If a runner fails the wobble check, they are *Caught*: the runner is moved to the Base as a Hostage (xi←1, state HOSTAGE). R4. **Base Tap & Rescue:** - If any active Runner reaches xi=0, they execute `TAP_BASE`, shouting "Free!". - All Hostages are immediately freed; all Runners enter `ESCAPE` state and sprint back toward x=20. R5. **Escape Pursuit Phase:** - Real-time chase over Tchase=10 ticks. - Runners move toward x=20 at speed vrunner=2 units/tick. - Tagger pursues at speed vtagger=3 units/tick starting from x=0. - If Tagger overtakes runner j (xtagger≥xj before xj≥20), runner j is tagged. The tagged runner becomes the new Tagger for the next round. - If all runners reach x≥20 safely, the current Tagger retains the role for another round. R6. **Victory:** In a multi-round match (e.g. 5 rounds), the player with the lowest cumulative time spent as Tagger wins. R7. [gap-fill] Track discretized to a linear 1D corridor of L=20 spatial stations. R8. [gap-fill] Dynamic deceleration wobble: Higher sprint velocity carries increased detection probability upon freeze: P(detected)=0.00 for v=0, 0.15 for v=1, 0.30 for v=2, 0.45 for v=3. R9. [gap-fill] Hostage mechanic: Captured runners remain immobile at x=1 until a teammate reaches x=0 to trigger a joint escape. R10. [gap-fill] Loop-breaking round cap: If no runner reaches x=0 after 25 chant cycles, the round terminates; Tagger wins the round, and the runner closest to x=20 becomes the next Tagger. ## Edge cases - **Tie at the end condition:** If Tagger overtakes multiple runners on the exact same tick, the runner with the lower agent ID becomes the new Tagger. - **A player with no legal move:** Runners always have v=0 (`STAY/FREEZE`) available; Tagger always has chant durations {2..5}. - **Repetition / cycles:** Runners inching back and forth or freezing indefinitely are bounded by R10's 25-cycle limit. - **Simultaneous claims on the same resource or position:** Multiple runners reaching x=0 simultaneously trigger a single unified rescue and escape phase. - **Player elimination mid-round:** Hostages are temporarily disabled from moving until rescued; if ALL runners become hostages, Tagger wins round automatically. - **Resource exhaustion:** Spatial corridor is fixed; cycle counter is monotonically incremented. - **Termination guarantee:** Guaranteed by finite distance L=20, absorbing base-tap/escape outcomes, and R10's 25-cycle cap. ## State representation - **Persistent state:** `track_length: 20`, `max_cycles: 25`. - **Per-player state:** - `tagger_id: int` - `positions: Dict[agent_id, float]` - `runner_states: Dict[agent_id, str in {ACTIVE, HOSTAGE, ESCAPING, SAFE, TAGGED}]` - `rounds_as_tagger: int` - **Per-turn ephemeral state:** - `current_cycle: int` - `tagger_orientation: str in {AWAY, TOWARD}` - `chosen_chant_duration: int` - `chosen_velocities: Dict[agent_id, int]` - **Observable information:** - During chant: Runners observe their own position and Tagger's voice rhythm. Tagger cannot observe runner positions. - During freeze check: Tagger observes all runner positions and detects movement violations. ## Action space - `set_chant_duration(duration)`: Parameters: `duration in {2, 3, 4, 5}`. Preconditions: agent is Tagger, orientation is `AWAY`. - `advance_speed(velocity)`: Parameters: `velocity in {0, 1, 2, 3}`. Preconditions: agent is active Runner during chant. - `tap_base()`: Parameters: none. Preconditions: active Runner at x≤0. - `escape_step()`: Parameters: none. Preconditions: Runner during escape pursuit phase. - `pursue_step()`: Parameters: none. Preconditions: Tagger during escape pursuit phase. ## Playability notes - **Single-player-vs-AI:** Highly engaging. Player as Runner must gauge risk vs speed under uncertain Tagger chant lengths; as Tagger, player varies chant duration to catch hasty bots. - **Group games (n>4):** Natively accommodates 3 to 9 players. - **Physical-skill games:** Physical stealth, rapid brake control, and peripheral vision are abstracted into velocity-dependent wobble distributions and chant-length guessing. - **What is lost in the adaptation:** Physical comic frozen poses, stifled giggles, wind blowing clothes, and body contact tagging. ## Implementation hints - Model game loop with explicit state machine: `CHANTING -> FREEZE_CHECK -> (RESCUE_ESCAPE or NEXT_CYCLE) -> ROUND_END`. - Branching factor: Tagger has 4 choices; each runner has 4 velocity choices (4×4N joint actions per cycle). - First milestone: 2-agent headless simulation (1 Tagger, 1 Runner) verifying freeze detection probability curves and base touchdown triggers.

Download as JSON

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

Download JSON
Cite this page

1-2-3 Wooden Man (Hong Kong Red Light, Green Light) (Hong Kong). (n.d.). Games of Countries. https://gamesofcountries.com/games/hk-hong-kong/jat-ji-saam-muk-tau-jan

@misc{gamesofcountries-hk-hong-kong-jat-ji-saam-muk-tau-jan,
  title = {1-2-3 Wooden Man (Hong Kong Red Light, Green Light) (Hong Kong)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hk-hong-kong/jat-ji-saam-muk-tau-jan}
}