Formal Specification
Drop the Cap — Formal Specification
Lebanon · singing-circle · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 5
# Taq Taq Taqiyyeh — AI-optimized specification
## General idea
The traditional Lebanese sitting-circle singing and chase game (*Taq Taq Taqiyyeh*). A runner circles seated children while singing call-and-response rhymes and secretly drops a cap behind one player. The target must detect the cap, snatch it, and sprint around the perimeter to tag the runner before the runner occupies the vacated seat.
## Formal model
- **Abstraction taken:** Seated circle modeled as a directed graph of nodes. Tactile touch detection modeled probabilistically.
- **Player/agent count:** 6 to 15 agents (1 `Runner`, `Seated` agents).
- **Turn model:** 1 Walk & Drop Phase, followed by real-time Chase Phase.
## Formal rules
R1. **Circle setup:** Seated nodes arranged in clockwise circle facing inward.
R2. **Walk & drop:** Runner traverses perimeter and executes `drop_cap(k)` behind node .
R3. **Detection check:**
- Player at node detects cap with probability per tick after drop [gap-fill].
- Maximum detection delay is 3 ticks.
- If Runner completes a full lap and reaches node again before detection: seated player is sent to "The Well" (*Al-Joura*) [gap-fill].
R4. **Chase execution:**
- Player at node stands and becomes `Chaser`.
- Both sprint clockwise: Runner aims to sit in node ; Chaser aims to tag Runner.
- Velocities: , [gap-fill].
R5. **Resolution:**
- If Runner reaches node untagged: Runner sits safely; Chaser becomes the new Runner for the next round.
- If Chaser tags Runner before node : Runner repeats Runner role in next round.
R6. [gap-fill] Round ceiling:** Maximum 20 ticks per chase.
## Edge cases
- **Tie at the end condition:** Runner safe if sitting on exact same tick as tag [gap-fill].
- **A player with no legal move:** Deterministic state machine.
- **Repetition / cycles:** Bounded by 20 ticks per chase.
- **Simultaneous claims:** Handled by R5 resolution.
- **Player elimination mid-round:** Role rotation.
- **Resource exhaustion:** 1 cap, persistent.
- **Termination guarantee:** Provable per-round termination.
## State representation
- **Persistent state:** `circle_size: int`, `runner_id: AgentID`, `seated_ids: List[AgentID]`, `well_ids: Set[AgentID]`.
- **Ephemeral state:** `dropped_node: Optional[int]`, `chaser_id: Optional[AgentID]`, `runner_node: int`, `chaser_node: int`.
- **Observable information:** Imperfect during walk phase; common knowledge once chase begins.
## Action space
- `move_walk()`: Advance 1 node.
- `drop_cap(node_id)`: Drop behind player.
- `check_behind()`: Tactile reach check.
- `sprint()`: Clockwise chase.
## Playability notes
- **Single-player-vs-AI:** Reaction/sprint timing challenge.
- **Group games (n>4):** Native multi-agent group dynamics.
- **Physical-skill games:** Backward touch vigilance mapped to detection probabilities.
- **What is lost:** Lebanese singing rhymes (*"Taq Taq Taqiyyeh.. Taqiyyetayn bi-zelleh..."*).
## Implementation hints
1D circular array simulation with modular arithmetic indices.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Drop the Cap (Lebanon). (n.d.). Games of Countries. https://gamesofcountries.com/games/lb-lebanon/taq-taq-taqiyyeh
@misc{gamesofcountries-lb-lebanon-taq-taq-taqiyyeh,
title = {Drop the Cap (Lebanon)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/lb-lebanon/taq-taq-taqiyyeh}
}