Formal Specification
1-2-3 Wooden Man (Hong Kong Red Light, Green Light) — Formal Specification
Hong Kong · chase-tag · Confidence: low
← Back to game pageImplementation 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 ( meters), where is the Tagger's Base Wall and 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:** players (1 Tagger, Runners, where ).
- **Turn model:** Alternating two-phase cycles: (1) Chant Phase (Tagger commits hidden chant duration , 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 facing away (). All Runners start at . Track length units.
R2. **Chant Phase:**
- The Tagger chooses chant duration ticks.
- Each Runner chooses an advance speed units/tick to move toward .
- Runner position updates: .
R3. **Freeze Check Phase:**
- At the end of the chant, Tagger spins to face field ().
- For each runner, the engine calculates wobble risk .
- If a runner fails the wobble check, they are *Caught*: the runner is moved to the Base as a Hostage (, state ).
R4. **Base Tap & Rescue:**
- If any active Runner reaches , they execute `TAP_BASE`, shouting "Free!".
- All Hostages are immediately freed; all Runners enter `ESCAPE` state and sprint back toward .
R5. **Escape Pursuit Phase:**
- Real-time chase over ticks.
- Runners move toward at speed units/tick.
- Tagger pursues at speed units/tick starting from .
- If Tagger overtakes runner ( before ), runner is tagged. The tagged runner becomes the new Tagger for the next round.
- If all runners reach 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 spatial stations.
R8. [gap-fill] Dynamic deceleration wobble: Higher sprint velocity carries increased detection probability upon freeze: for , for , for , for .
R9. [gap-fill] Hostage mechanic: Captured runners remain immobile at until a teammate reaches to trigger a joint escape.
R10. [gap-fill] Loop-breaking round cap: If no runner reaches after 25 chant cycles, the round terminates; Tagger wins the round, and the runner closest to 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 (`STAY/FREEZE`) available; Tagger always has chant durations .
- **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 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 , 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 .
- `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 ( 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 JSONCite 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}
}