Formal Specification
Circle Cap Chase — Formal Specification
Tunisia · singing-circle · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Taq Taq Taqiyya — AI-optimized specification
## General idea
A musical circle drop-and-chase game. One runner circles an N-node ring, secretly dropping a token behind a seated agent. The target agent must detect the token and chase the runner around the perimeter; if the runner reaches the vacant seat first, the chaser becomes the new runner.
## Formal model
- **Abstraction taken:** The circle is modeled as a circular graph of `N = 8` nodes `[0..7]`. Time is discretized into 1-second ticks.
- **Player/agent count:** `N = 8` agents (Runner `R` and Seated agents `S_0..S_6`).
- **Turn model:** Continuous real-time movement ticks during active drop and pursuit phases.
## Formal rules
R1. Setup: Seated agents occupy positions `0..6` in order. Runner starts at position `7` (behind node 0) carrying `Cap = true`.
R2. Circling & Drop Phase:
- Runner advances clockwise at `Speed = 1 node/tick`.
- At any node `k in [0..6]`, Runner can execute `drop_cap(k)`.
- Once dropped, `Cap` rests behind node `k`. Runner continues sprinting clockwise toward node `k` to steal the seat.
R3. Detection & Pursuit Phase:
- Seated agent `k` executes detection checks each tick: `P_detect = 0.40 + 0.10 * ticks_since_drop`.
- Once detected, Agent `k` transitions to `Chaser`, grabs `Cap`, and sprints clockwise behind `Runner` at `Speed_Chaser = 1.2 nodes/tick`.
- `Runner` sprints at `Speed_Runner = 1.0 nodes/tick`.
R4. Resolution:
- If `Runner` traverses the full perimeter and occupies vacant node `k` before `Chaser` closes distance to `<= 0.2 nodes`, `Runner` succeeds (becomes Seated) and `Chaser` becomes the new `Runner`.
- If `Chaser` tags `Runner` before seat occupancy, `Runner` remains `Runner` and suffers penalty.
R5. [gap-fill] Match Termination: A session consists of 10 consecutive drop-and-chase cycles. Each agent tracks successful escapes (`+1 point`) and successful tags (`+1 point`). The agent with the highest score wins.
## Edge cases
- Tie at the end condition: [gap-fill] If scores are tied after 10 cycles, the tied agents share the victory.
- A player with no legal move: Not applicable; running and chasing actions are always valid.
- Repetition / cycles: Bounded strictly by 10 drop cycles.
- Simultaneous claims on the same resource or position: Strict 1D distance comparison along the circular graph.
- Player elimination mid-round; turn order repair: Role transitions swap identities smoothly without altering circle topology.
- Resource exhaustion: Monotonically decaying cycle counter.
- Termination guarantee: Enforced by the 10-cycle upper limit.
## State representation
- Persistent state: `scores: Array[N][int]`, `runner_id: int`, `seat_map: Array[N][int]`, `cycle_num: int in [1..10]`.
- Ephemeral state: `cap_pos: Optional[int]`, `chaser_id: Optional[int]`, `runner_dist: float`, `chaser_dist: float`.
- Observability: Seated agents only observe local cap state via probabilistic detection; runner and chaser coordinates are public once chase begins.
## Action space
- `circle_step()`: Advance around ring.
- `drop_cap(target_node)`: Runner action.
- `chase_and_tag()`: Chaser action.
## Playability notes
- Single-player-vs-AI: Playable as the stealthy runner timing the drop or the alert chaser sprinting for the tag.
- Group games (n>4): Naturally scales to any circle size `N in [6..20]`.
- Physical-skill games: Sprint speeds and reaction times cleanly parameterized.
- What is lost: The infectious laughter of children singing the rhymed refrain in unison.
## Implementation hints
Circular graph state machine. First milestone: implement circular distance calculations and detection probability checks before adding sprint acceleration curves.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Circle Cap Chase (Tunisia). (n.d.). Games of Countries. https://gamesofcountries.com/games/tn-tunisia/taq-taq-taqiyya-tunisia
@misc{gamesofcountries-tn-tunisia-taq-taq-taqiyya-tunisia,
title = {Circle Cap Chase (Tunisia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/tn-tunisia/taq-taq-taqiyya-tunisia}
}