Formal Specification
Drop the Cloth / Thursday's Whipping — Formal Specification
Pakistan · singing-circle · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Kokla Chhapaki — AI-optimized specification
## General idea
A discrete circular turn-and-chase game with hidden item placement. A Runner agent moves clockwise along the exterior of an `N-1` seated agent ring, covertly choosing a target behind whom to drop a cloth token. Seated agents observe only local tactile cues; detection initiates an asymmetric sprint race around the circle to claim the vacant position.
## Formal model
- **Abstraction taken:** The circular seating arrangement is modeled as a ring graph of `N-1` discrete nodes `0..(N-2)`. The Runner moves continuously along the exterior loop.
- **Player/agent count:** `N` agents total: 1 Runner `R`, `N-1` Seated agents `S_0..S_{N-2}` (standard `N = 6`).
- **Turn model:** Phased execution: Phase 1 (Circulation & Drop, discrete movement ticks) followed by Phase 2 (Sprint Race, discrete ticks).
## Formal rules
R1. Setup: `N-1` seated agents occupy positions `0..(N-2)` along the circle. Runner starts at index 0 holding `cloth = True`.
R2. Phase 1 (Circulation & Drop):
- Runner advances clockwise `pos_R = (pos_R + speed_R) mod (N-1)`.
- At any point behind seat `i`, Runner may execute `drop_cloth(i)`.
- If dropped at seat `i`, `cloth_location = i`.
R3. Detection sampling: On each tick that `cloth_location == i`:
- Agent `S_i` executes a detection check `P(detect) = base_perception + elapsed_ticks * 0.05`.
- If detection succeeds before Runner completes a full lap: Phase 2 (Chase) initiates immediately. `S_i` becomes Chaser holding cloth; seat `i` becomes vacant.
- If Runner completes a full lap `pos_R == i` without detection: Runner tags `S_i` ("Shamat"). Runner wins round; `S_i` runs penalty lap; Runner remains Runner.
R4. Phase 2 (Sprint Race):
- Both Runner and Chaser sprint clockwise around the ring toward the vacant seat `i`.
- If Runner reaches seat `i` first: Runner claims seat `i` and becomes a Seated Agent; Chaser becomes the new Runner for the next round.
- If Chaser catches Runner (`pos_Chaser >= pos_Runner`) before seat `i`: Original Runner is tagged and must remain Runner for the next round.
R5. [gap-fill] Score calculation: When an agent successfully transitions from Runner to Seated, they score 10 points. If an agent remains Seated through a round without being caught unaware, they score 2 points.
R6. [gap-fill] Match end: Match executes a fixed number of rounds (e.g. `2 * N = 12` rounds). The agent with the highest individual score wins.
R7. [gap-fill] Anti-cheating constraint: Seated agents cannot inspect `cloth_location` directly; observation is restricted to the stochastic detection roll in R3.
## Edge cases
- **Tie at the end condition:** Handled by point accumulation across `2*N` rounds (R6).
- **A player with no legal move:** Movement along the circle is always legal.
- **Repetition / cycles:** Bounded because each round strictly terminates either at full-lap completion (at most `(N-1)` ticks) or sprint completion (at most `(N-1)` ticks).
- **Simultaneous claims on the same resource or position:** If Runner and Chaser reach vacant seat `i` on the exact same tick, [gap-fill] priority is awarded to the Runner.
- **Player elimination mid-round:** Not applicable; players exchange roles between Runner and Seated.
- **Resource exhaustion:** Only 1 cloth token exists in the game state.
- **Termination guarantee:** Guaranteed by finite round counter in R6 and bounded tick count per phase.
## State representation
- **Persistent state:** `scores[1..N]`, `round_index in {1..2N}`, `current_runner_id`.
- **Per-round ephemeral state:** `pos_R in [0, N-1)`, `cloth_location in {None, 0..N-2}`, `vacant_seat in {None, 0..N-2}`, `chase_active_flag`, `detection_timer`.
- **Observable information:**
- Runner observes full state (all positions and cloth location).
- Seated agents observe only public announcements and their private `cloth_detected` event.
## Action space
- `circle_move(speed)`: Runner advancement.
- `drop_cloth(target_seat_id)`: Covert action by Runner.
- `sprint(speed)`: Phase 2 movement action.
## Playability notes
- **Single-player-vs-AI:** Natural; human player can choose the optimal deceptive drop target as Runner, or manage peripheral attention as a Seated player.
- **Group games (n>4):** Native multi-agent design (6 to 20 agents).
- **Physical-skill games:** Sprint speed and tactile detection are abstracted into discrete parameter functions.
- **What is lost:** The rhythm of singing the traditional Punjabi couplets in chorus and the auditory tension of footsteps circling behind one's back.
## Implementation hints
Low complexity. The state space is a 1D modular integer ring `Z_(N-1)`. Implement the Phase 1 hidden drop and detection timer first before connecting the Phase 2 clockwise sprint resolver.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Drop the Cloth / Thursday's Whipping (Pakistan). (n.d.). Games of Countries. https://gamesofcountries.com/games/pk-pakistan/kokla-chhapaki
@misc{gamesofcountries-pk-pakistan-kokla-chhapaki,
title = {Drop the Cloth / Thursday's Whipping (Pakistan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pk-pakistan/kokla-chhapaki}
}