Formal Specification
What Time Is It, Mr. Fox? (Hong Kong Fox Tag) — Formal Specification
Hong Kong · chase-tag · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Wu Lei Sin Saang — AI-optimized specification
## General idea
A spatial proximity-management and chase game based on Hong Kong *Wu Lei Sin Saang* (What Time Is It, Mr. Fox?). Runners advance along a track according to hour callouts made by the Fox; the Fox strategically lures runners into point-blank range before declaring "Twelve o'clock! Dinnertime!" to trigger a frantic reverse sprint to the safety line.
## Formal model
- **Abstraction taken:** Continuous play space is formalized as a discrete 1D linear axis ( meters), where is the Fox's lair and is the Runner Safety Zone. Verbal Cantonese time callouts are modeled as discrete integer displacement commands .
- **Player/agent count:** 1 Fox () and Runners (), where .
- **Turn model:** Alternating dialogue cycles followed by a real-time discretized pursuit phase upon the strike call.
## Formal rules
R1. **Setup & Baseline:** Fox starts at facing away. All Runners begin behind the safety line at . Track length .
R2. **Dialogue Cycle:**
- Runners query: `ASK_TIME`.
- Fox responds with action `CALL_HOUR(H)` where .
R3. **Advance Phase (Hours 1 to 11):**
- If , every active runner advances forward: .
- **Shoulder Tap Rule:** If any runner reaches during an advance phase, they execute `TAP_SHOULDER`, immediately triggering the Escape Phase with a 2-unit head start.
R4. **The Strike (Twelve O'Clock / Dinnertime):**
- If Fox calls (`CALL_HOUR(12)`), the Escape Phase is immediately initiated.
R5. **Escape & Pursuit Phase:**
- The engine simulates a real-time sprint over ticks.
- Each tick, Runners move toward safety () at speed units/tick.
- Fox pursues toward at speed units/tick starting from .
- **Capture:** If while , runner is captured. The captured runner becomes the new Fox for the subsequent round.
- If all runners reach without being tagged, the current Fox retains the role for another round.
R6. **Victory Condition:** In a standard 5-round match, the player with the lowest cumulative rounds spent as Fox wins.
R7. [gap-fill] Track discretized to a linear 1D corridor of length units.
R8. [gap-fill] Speed differential: Fox pursuit speed units/tick; Runner sprint speed units/tick.
R9. [gap-fill] Shoulder tap benefit: Reaching before hour 12 grants runners a 2-tick head start before the Fox may begin moving.
R10. [gap-fill] Forced strike limit: If Fox has not called by cycle 8, is automatically invoked by the engine to prevent infinite stalling.
## Edge cases
- **Tie at the end condition:** If Fox tags multiple runners on the exact same tick, the runner with the lower agent ID becomes the new Fox.
- **A player with no legal move:** Fox always has choices ; runners advance deterministically according to the called hour.
- **Repetition / cycles:** Small incremental calls (e.g. calling "1 o'clock" repeatedly) are strictly bounded by R10's 8-cycle strike trigger.
- **Simultaneous claims on the same resource or position:** Multiple runners reaching simultaneously trigger a single unified escape phase.
- **Player elimination mid-round:** Not applicable (all runners participate in the escape sprint).
- **Resource exhaustion:** Track length is fixed; cycle counter is bounded.
- **Termination guarantee:** Guaranteed by finite distance , forced strike limit (R10), and bounded pursuit tick limit .
## State representation
- **Persistent state:** `track_length: 20`, `chase_ticks_max: 10`, `max_cycles: 8`.
- **Per-player state:**
- `positions: Dict[agent_id, float]`
- `role: str in {FOX, RUNNER}`
- `rounds_as_fox: int`
- **Per-turn ephemeral state:**
- `current_cycle: int`
- `called_hour: Optional[int]`
- `chase_active: bool`
- `chase_tick: int`
- **Observable information:** Fully observable game state. All agent positions, called hours, and sprint velocities are public.
## Action space
- `ask_time()`: Preconditions: active Runners during dialogue phase.
- `call_hour(hour)`: Parameters: `hour in [1, 12]`. Preconditions: active Fox.
- `tap_shoulder()`: Preconditions: Runner at before hour 12.
- `flee_step()`: Preconditions: Runner during escape chase.
- `pursue_step()`: Preconditions: Fox during escape chase.
## Playability notes
- **Single-player-vs-AI:** Highly entertaining. As Fox, player calculates optimal strike timing based on runner cluster positions; as Runner, player evaluates whether to rush for a shoulder tap.
- **Group games (n>4):** Natively supports 4 to 9 players.
- **Physical-skill games:** Physical acceleration and distance estimation are abstracted into velocity differential updates and discrete grid pursuit.
- **What is lost in the adaptation:** Authentic high-pitched Cantonese chorus chanting (*Wu-lei sin-saang gei-do dim?*), theatrical fox growls, and playground squeals.
## Implementation hints
- Pure discrete state machine: `DIALOGUE -> ADVANCE -> (CHASE or NEXT_CYCLE) -> ROUND_END`.
- Branching factor: Fox has 12 discrete hour choices per dialogue cycle; chase phase is fully deterministic given starting coordinates.
- First milestone: 2-agent headless simulation (1 Fox, 1 Runner) verifying step-advance calculations, shoulder tap triggers, and pursuit capture resolution.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
What Time Is It, Mr. Fox? (Hong Kong Fox Tag) (Hong Kong). (n.d.). Games of Countries. https://gamesofcountries.com/games/hk-hong-kong/wu-lei-sin-saang
@misc{gamesofcountries-hk-hong-kong-wu-lei-sin-saang,
title = {What Time Is It, Mr. Fox? (Hong Kong Fox Tag) (Hong Kong)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/hk-hong-kong/wu-lei-sin-saang}
}