Skip to main content
Formal Specification

Egg Cracking Battle — Formal Specification

Afghanistan · festival-ritual · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Tukhm-jangī — AI-optimized specification ## General idea A festive head-to-head egg-cracking duel. Two players test their hard-boiled eggs for shell density using tooth-tapping acoustics, agree on a contact orientation (point-to-point or base-to-base), and assume alternating roles of "holder" and "striker". When the striker taps the holder's egg, the physical impact fractures one or both shells; the player whose egg survives intact wins and claims the cracked egg. ## Formal model - **Abstraction taken:** Micro-crystalline shell thickness, calcium eggshell porosity, and acoustic resonance testing (*dandan-zadan*) are abstracted into a structural durability attribute H∈[50,100] per egg, with an informational noise layer representing pre-tap tooth testing and a stochastic fracture-impact resolver. - **Player/agent count:** 2 agents (Agent 1 and Agent 2). - **Turn model:** Two-phase sequential protocol: Phase 1 (Inspection & Negotiation), Phase 2 (Impact Tap Resolution). ## Formal rules R1. **Setup & Inventory:** Each agent possesses an inventory of E hard-boiled eggs (default: E=3). Each egg k has true hidden structural hardness values Hpoint∈[50,100] and Hbase∈[40,90]. R2. **Tooth-Testing Phase (*Dandān-Zadan*):** Before selecting an egg, an agent may test candidate eggs: - Action `TEST_EGG(egg_id)`: Returns a noisy acoustic estimate: Hˆ=H+𝒩(0,5.0). [gap-fill: acoustic testing observation formula]. R3. **Selection & Orientation Agreement:** - Both agents select 1 active egg from their inventory. - Agents negotiate orientation: `ORIENTATION` ∈{Sar-ba-Sar (Point-to-Point),Koon-ba-Koon (Base-to-Base)}. - Coin toss decides who acts as the Holder (H) and who acts as the Striker (S). R4. **Impact Tap Execution:** - The Striker chooses a tap force parameter α∈[0.6,1.0]. - Impact stress calculation: - StressHolder=(100−HHolder)×α+𝒩(0,4.0) - StressStriker=(100−HStriker)×α×1.1+𝒩(0,4.0) (striker incurs dynamic impact rebound). - [gap-fill: impact stress calculation and striker rebound multiplier]. R5. **Fracture & Victory Outcomes:** - An eggshell fractures if Stress≥FractureThreshold (40.0). - **Case 1 (Holder Cracks, Striker Intact):** Striker wins; claims Holder's cracked egg. - **Case 2 (Striker Cracks, Holder Intact):** Holder wins; claims Striker's cracked egg. - **Case 3 (Both Crack):** Match is a draw (*musawi*); both eggs crack, no transfer. - **Case 4 (Neither Cracks):** Striker re-taps with +0.1 force until a fracture occurs. R6. **Match Termination:** A full match continues until one agent's egg inventory is completely exhausted. The agent holding all surviving eggs wins the match. ## Edge cases - Tie at the end condition: If both agents simultaneously lose their last egg on a mutual double-fracture (Case 3), the match ends in a formal draw. [gap-fill: mutual last-egg fracture draw rule]. - A player with no legal move: Not applicable; an active agent always has a valid egg selection and tap action. - Repetition / cycles: Bounded by Case 4's increasing tap force (α→1.0), ensuring an eggshell fractures within at most 3 tap attempts. - Simultaneous claims on the same resource or position: Both eggs experience the single simultaneous impact tap; stress formulas are evaluated concurrently before state updates. - Player elimination mid-round; turn order repair: When an agent's inventory reaches 0 eggs, the match terminates immediately; no mid-round turn order repair is needed for a 2-agent duel. - Resource exhaustion (pieces, tokens, space, time): The egg inventory (E) is finite and strictly decrements on each decisive duel until reaching 0. - Termination guarantee: Provably terminates because each non-draw round permanently eliminates at least one egg from the finite total pool (2×E). ## State representation - **Persistent state:** - `agent1_inventory`: list of Egg objects `{id, H_point, H_base, is_cracked: boolean}` - `agent2_inventory`: list of Egg objects `{id, H_point, H_base, is_cracked: boolean}` - `eggs_won_p1`: integer - `eggs_won_p2`: integer - `match_status`: `ONGOING | P1_WINS | P2_WINS | DRAW` - **Per-duel ephemeral state:** - `p1_selected_egg`: egg_id - `p2_selected_egg`: egg_id - `chosen_orientation`: enum `[SAR_BA_SAR, KOON_BA_KOON]` - `role_assignment`: `{holder: agent_id, striker: agent_id}` - `tap_force`: float - `fracture_results`: `{holder_cracked: boolean, striker_cracked: boolean}` - **Observable information:** - Private: True egg hardness is hidden; only noisy estimates Hˆ from tooth-testing are observed. - Public: Number of remaining eggs in each basket, orientation choice, and physical cracking results. ## Action space - `test_egg(egg_id)`: Precondition: `egg_id` belongs to agent's uncracked inventory. - `select_egg(egg_id)`: Precondition: `egg_id` is uncracked. - `propose_orientation(choice)`: Choice ∈{Sar-ba-Sar,Koon-ba-Koon}. - `execute_tap(force)`: Precondition: Agent is designated Striker, force ∈[0.6,1.0]. ## Playability notes - Single-player-vs-AI: Very charming and accessible. The player inspects and taps eggs against their virtual teeth to deduce the hardest egg in their basket, negotiating orientation before striking against an AI holiday opponent. - Group games (n>4): In holiday gatherings, dozens play simultaneously; group play scales as a Swiss-system or single-elimination tournament of 1v1 duels. - Physical-skill games: Sensory testing and controlled tapping force are mapped to Bayesian estimation and force-stress functions. - What is lost in the adaptation: The tactile sensation of tapping a dyed egg against front teeth, the aroma of boiled eggs and salt, and the holiday feast camaraderie of Nawruz and Eid mornings. ## Implementation hints Low complexity. The mechanics are simple and clean. Suggested first milestone: implement the hidden hardness distribution and tooth-testing estimator, then build the impact stress evaluation and inventory transfer loop.

Download as JSON

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

Download JSON
Cite this page

Egg Cracking Battle (Afghanistan). (n.d.). Games of Countries. https://gamesofcountries.com/games/af-afghanistan/tokhm-jangi

@misc{gamesofcountries-af-afghanistan-tokhm-jangi,
  title = {Egg Cracking Battle (Afghanistan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/af-afghanistan/tokhm-jangi}
}