Formal Specification
Kuwaiti Shell Flipping and Flicking Game — Formal Specification
Kuwait · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Al-Tash wa Al-Ghabra — AI-optimized specification
## General idea
A shell-flicking dexterity and collision game. Agents cast a pool of sea shells onto a 2D surface, evaluate paired shell orientations (aperture-up vs dome-up), and execute precision finger flicks to collide designated target pairs without disturbing obstacle shells.
## Formal model
- **Abstraction taken:** The 1.5x1.5m playing area is modeled as a 2D coordinate plane holding `M` shell tokens with position `(x, y)` and binary orientation `O ∈ {TASH, GHABRA}`. Finger flicks are parameterized by aim angle and power, resolved via raycast collision checks.
- **Player/agent count:** `N` agents (`2 <= N <= 6`).
- **Turn model:** Sequential turn-based rounds.
## Formal rules
R1. Pool Staking and Casting:
- Each agent stakes `k` shells [gap-fill: default stake is 3 shells per player]; total pool `M = N * k`.
- Active player executes `cast_pool()`: Shells scatter randomly across `x, y ∈ [-0.75, 0.75]` with `P(TASH) = 0.50`.
R2. Target Selection:
- Opponent designates target pair `(i, j)` where `O_i == O_j`.
R3. Flick Action & Collision:
- Active agent executes `flick_shell(source_id=i, target_id=j, power)`:
- Trajectory ray: `ray = pos_j - pos_i + noise(dexterity)` [gap-fill: collision physics is approximated via raycast collision checks with noise].
- Collision check:
- If ray collides with any third shell `k ≠ (i, j)`: Turn ends immediately (foul).
- If ray strikes shell `j` cleanly: Agent captures shells `i` and `j` (`scores[player] += 2`), shells removed from board.
- If ray misses shell `j`: Turn ends.
R4. Win Condition:
- Game terminates when fewer than 2 shells remain on the board.
- Agent with the highest count of captured shells wins.
## Edge cases
- **Tie at the end condition:** Sudden-death 2-shell flick playoff.
- **A player with no legal move:** If no matching pairs exist, remaining shells are re-cast.
- **Repetition / cycles:** Monotonic shell capture ensures termination.
- **Simultaneous claims on shells:** Sequential turns prevent concurrent actions.
- **Player elimination mid-round:** Players do not get eliminated.
- **Resource exhaustion:** Shell pool `M` strictly decreases.
- **Termination guarantee:** Guaranteed by finite shell pool.
## State representation
- **Persistent state:**
- `scores: Array[N] of int`.
- `active_player: int`.
- **Ephemeral round state:**
- `shell_positions: Dict[int, Vector2D]`.
- `shell_orientation: Dict[int, enum {TASH, GHABRA}]`.
- `active_target_pair: Optional[Tuple[int, int]]`.
- **Information set:** Perfect information, fully observable.
## Action space
- `cast_pool()`: Scatter initial shells.
- `flick_shell(source_id: int, target_id: int, power: float)`: Precision flick.
## Playability notes
- **Single-player-vs-AI:** Highly playable dexterity puzzle. AI opponents select challenging target pairs with obstructed line-of-sight.
- **Group games:** Scales naturally for 2 to 6 players.
- **Physical-skill model:** Line-of-sight targeting and impulse control are modeled with raycast noise.
- **What is lost:** Tactile smoothness and click sound of sea shells.
## Implementation hints
Use 2D circle-ray intersection algorithms for collision detection. Add obstacle tolerance check based on agent dexterity rating.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Kuwaiti Shell Flipping and Flicking Game (Kuwait). (n.d.). Games of Countries. https://gamesofcountries.com/games/kw-kuwait/al-tash
@misc{gamesofcountries-kw-kuwait-al-tash,
title = {Kuwaiti Shell Flipping and Flicking Game (Kuwait)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/kw-kuwait/al-tash}
}