Skip to main content
Formal Specification

Hide and Seek (Cang Maomao) — Formal Specification

China · hide-seek · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 3
# Zhuo Micang — AI-optimized specification ## General idea A traditional Chinese hide-and-seek and base-touching game (*Cang Maomao* / *Zhuo Micang*) formalized on a spatial graph. One designated Seeker (*Zhuozhe*) closes their eyes and counts down at the Home Base (*Bao* / *Da Benying*), while Hiders disperse into cover nodes. During the search phase, the Seeker navigates to detect hidden players, while Hiders either remain concealed or execute a dash to touch the Home Base (*Mo Bao* / *Bao Laocha*) to secure immunity. ## Formal model - **Abstraction taken:** Courtyard/garden physical hiding environments are discretized into a 2D planar graph G=(V,E) containing open nodes, occluding cover nodes, and a central Home Base node B. Agents move simultaneously in discrete ticks with line-of-sight (LOS) vision cones and occlusion shadows. - **Player/agent count:** 1 Seeker and M∈[2,6] Hiders (M+1 agents total). - **Turn model:** Two phases: Countdown Phase (Seeker stationary at Base B with 0 visibility; Hiders disperse), followed by Active Search & Base-Sprint Phase (simultaneous tick movement). ## Formal rules R1. Map Graph: Graph G=(V,E) with |V|=32 nodes, including Home Base node B. All agents initialize at node B. R2. **Phase 1 (Countdown / Hiding):** - Duration: 25 ticks. - Seeker is immobilized at node B with vision =0. - Hiders move 1 edge per tick to reach designated cover nodes v∈Vcover. R3. **Phase 2 (Active Search & Base Race):** - Seeker moves up to 2 edges per tick; Hiders move 1 edge per tick (with a 2-tick sprint burst at 2 edges per tick). - Seeker projects a line-of-sight (LOS) vision ray up to distance d=3 edges, blocked by occluding wall/cover nodes. - If a Hider is within unobstructed LOS of the Seeker, or if the Seeker enters their exact cover node, the Hider is **Spotted**. R4. **Home Base Touch (*Mo Bao* / 摸大本营):** - Any Hider (whether spotted or stealthily navigating) who reaches Home Base node B and executes `touch_base()` is declared **Safe** (*Mian-yi*) for the round. R5. **Capture Resolution:** - If the Seeker enters the same node as a Hider before the Hider touches Base, or if the Seeker spots a Hider and beats them back to node B to touch Base first while calling their name, that Hider is **Captured**. R6. Round Conclusion & Role Turnover: - Phase 2 ends when all Hiders are either Safe or Captured, or when the 100-tick search limit expires. - The first Hider to be Captured becomes the new Seeker for the subsequent round. - If all Hiders successfully touch Base or remain undiscovered, the same Seeker must seek again. R7. [gap-fill] Cover Concealment Probability: A Hider remaining stationary inside a cover node within Seeker LOS has an 80% stealth occlusion factor; the Seeker only spots them with 20% probability unless entering the exact node. R8. [gap-fill] Maximum Search Phase Cap: If the search phase reaches 100 ticks, all remaining hidden players are declared Safe, concluding the round immediately. R9. [gap-fill] Sound Cue Mechanic: When a Hider moves across an open paved node, a sound alert is generated at that node with radius r=2 edges, alerting the Seeker's path planning heuristic. ## Edge cases - **Tie at the end condition:** Simultaneous arrival of Seeker and Hider at Home Base node B on the exact same tick awards immunity to the Hider (declared Safe). - **A player with no legal move:** Not applicable; remaining stationary at the current node is always legal. - **Repetition / cycles:** Hiders cycling between hiding nodes are bounded by the 100-tick search phase limit in R8. - **Simultaneous claims on the same resource or position:** Multiple Hiders may occupy the same cover node or Home Base simultaneously without conflict. - **Player elimination mid-round:** When a Hider becomes Safe or Captured, they are deactivated from movement for the remainder of that round. - **Resource exhaustion:** Sprint stamina (2 ticks) is consumed on use. - **Termination guarantee:** Provably terminates within 125 total ticks (25 countdown + 100 search ticks). ## State representation - **Persistent state:** `seeker_id`, `rounds_completed`, `hider_status[player_id]` ∈{Hidden,Spotted,Safe,Captured}. - **Ephemeral state:** `agent_positions[0..M]`, `sprint_stamina[1..M]`, `tick_counter (0..100)`, `spotted_flags[1..M]`. - **Observable information:** Partial information. Seeker observes only nodes within unobstructed LOS and auditory sound pings. Hiders observe their local d≤2 neighborhood and distant footstep sounds. ## Action space - `move(target_node)`: Move to adjacent graph node. - `sprint(target_node)`: Move 2 nodes (consumes 1 sprint charge). - `touch_base()`: Declare base touch upon reaching node B. ## Playability notes - **Single-player-vs-AI:** Highly playable as a stealth-action game (playing either as Seeker optimizing search sweeps or as Hider timing dashes to Home Base). - **Group games (n>4):** Scales cleanly with multiple hiders navigating the spatial graph concurrently. - **What is lost in the adaptation:** The physical tension of hiding in real courtyard corridors, breathless silence behind rockeries, and joyful celebratory screams on touching base. ## Implementation hints Graph-based navigation combined with 2D polygon raycasting for line-of-sight checks. Maintain separate belief visibility masks for Seeker and Hider agents.

Download as JSON

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

Download JSON
Cite this page

Hide and Seek (Cang Maomao) (China). (n.d.). Games of Countries. https://gamesofcountries.com/games/cn-china/zhuo-micang

@misc{gamesofcountries-cn-china-zhuo-micang,
  title = {Hide and Seek (Cang Maomao) (China)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/cn-china/zhuo-micang}
}