Skip to main content
Formal Specification

Hassaniya children's rhythmic singing circle — Formal Specification

Mauritania · singing-circle · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 0
# Dowayrat et-Tarka — AI-optimized specification ## General idea A rhythm-action hand-clapping and syllable-counting elimination game. An N-agent circular queue processes a metric rhyme of L syllables. On each beat, an action pointer advances and evaluates timing/gesture inputs; the agent on whom the terminal syllable lands must execute a quick-reflex withdrawal action within a timing tolerance or suffer hand/player elimination until 1 survivor remains. ## Formal model - **Abstraction taken:** Hand-clapping and rhyme meters are formalized as a discrete circular array A=[A0,…,AN−1] with hand tokens Hi=2. Rhyme sequences are represented as an array of L syllable beats: B=[b1,…,bL]. - **Player/agent count:** N agents (N∈[4,12], default N=6). - **Turn model:** Synchronous beat-ticked execution across recurring rhyme rounds. ## Formal rules R1. **Setup & Initialization:** - N agents in circular array A=[A0,…,AN−1]. - Hand count Hi=2 per agent (Total active hands M=2N). - Syllable script B has length L=16 beats. - Active hand pointer index p=0. R2. **Beat Progression & Syllable Advancement:** - On each beat k∈[1,L−1]: - Pointer advances: p←(p+1)(modM). - The agent controlling hand p must submit `clap_beat(timing)`: - If |Δt|≤τtolerance, beat is valid. - If timing fails, agent loses 1 hand immediately (Hi←Hi−1). R3. **Terminal Beat Challenge (*Khatma*):** - On beat L (terminal syllable): - Hand p∗ is targeted. - The agent owning hand p∗ must execute `reflex_withdraw()` within window τreflex=300ms. - If successful: Hand avoids elimination; p∗ resets. - If failed: Hand is eliminated (Hi←Hi−1, M←M−1). R4. **Agent Elimination:** - When an agent has Hi==0, the agent is removed from the active circle (A←A∖{Ai}). - Active hands array shrinks to M=∑Hj. R5. **Victory Condition:** - Rounds continue with new rhyme iterations until exactly 1 agent has Hi>0. - The surviving agent is declared the Winner. ## Edge cases - **Tie at the end condition:** Not applicable — eliminations occur sequentially on terminal syllables; exactly one agent survives. - **A player with no legal move:** Responding on a beat or executing a reflex withdrawal is always legal. - **Repetition / cycles:** Bounded by monotonic hand token reduction (M→1); each rhyme cycle eliminates at least one hand token upon failure, guaranteeing termination within ≤2N rounds. - **Simultaneous claims on the same resource or position:** Hand pointer p is strictly unique per beat. - **Player elimination mid-round; turn order repair:** Handled strictly by R4 (M updates, modulo pointer wraps smoothly). - **Resource exhaustion:** Hand tokens bounded by 2N. - **Termination guarantee:** Guaranteed by finite initial hand token pool (2N) and monotonic elimination. ## State representation - **Persistent state:** Active agents list A, active hand counts [H0,…,HN−1], total active hands M, current round index. - **Per-beat ephemeral state:** Beat index k∈[1,L], active hand pointer p∈[0,M−1]. - **Observable information:** Perfect information — full beat timeline, pointer index, and surviving hand counts are publicly broadcast. ## Action space - `clap_beat(timestamp)`: Millisecond timing submission. - `reflex_withdraw()`: Rapid keypress event on terminal beat. ## Playability notes - **Single-player-vs-AI:** Highly accessible rhythm game: player matches beat prompts on screen and reacts quickly on terminal downbeats against AI agents. - **Group games (N>4):** Standard multi-agent elimination queue. - **Physical-skill games:** Rhythmic timing accuracy and neuromuscular reaction speed. - **What is lost in the adaptation:** The physical sensation of slapping knees and hands together while singing cheerful Hassaniya verses in a circle. ## Implementation hints - Implement as a discrete modulo index stepper with a millisecond timing check for each syllable. - First milestone: Implement 4-player game loop verifying pointer advancement, terminal syllable trigger, and hand token elimination.

Download as JSON

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

Download JSON
Cite this page

Hassaniya children's rhythmic singing circle (Mauritania). (n.d.). Games of Countries. https://gamesofcountries.com/games/mr-mauritania/dowayrat-et-tarka

@misc{gamesofcountries-mr-mauritania-dowayrat-et-tarka,
  title = {Hassaniya children's rhythmic singing circle (Mauritania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/mr-mauritania/dowayrat-et-tarka}
}