Skip to main content
Formal Specification

Syrian Knucklebones — Formal Specification

Syria · dexterity-small · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Al-Ka'ab — AI-optimized specification ## General idea A tactical dexterity-pitching game where players aim at a cluster of ankle bones inside a circular arena. Strategic depth lies in choosing which target bone to hit, selecting the pitch force (to push bones out of the arena while keeping the shooter bone inside), and managing risk as the target density decreases. ## Formal model - **Abstraction taken:** The physical throwing trajectory and bone-on-bone collisions are abstracted into a 2D circle with K bone coordinate points. The pitch is modeled as a selected aim coordinate and force vector, with outcome probabilities sampled stochastically based on target proximity and player skill. - **Player/agent count:** 2 to 6 players, playing sequentially. - **Turn model:** Sequential turn rotation. A player retains their turn as long as they successfully capture a bone and their shooter remains in play (with a cap to prevent infinite loops). ## Formal rules R1. Setup: A 2D circular boundary of radius R=50 units centered at (0,0). A set of K target bones (positions (xi,yi)) are randomly clustered within a radius of 10 units around the center. R2. Player State: Each player p starts with score Sp=0. R3. The Action: On a turn, the active player declares a shot action `pitch(target_x, target_y, force)` where: - (target_x,target_y) is the aimed-at coordinate on the circle plane. - force∈[0.1,1.0] represents throwing speed. R4. [gap-fill] Hit Resolution: 4.1. The actual landing coordinate (hit_x,hit_y) of the shooter is sampled from a normal distribution centered at the aimed point, with standard deviation σ=(1.0−skill_parameter)×10. 4.2. Let Di be the distance from (hit_x,hit_y) to target bone i. If the minimum distance Dmin<dcollision (e.g. 2 units), a hit occurs. 4.3. [gap-fill] Collision Physics: If a hit occurs, the struck target bone is shifted in the direction of the hit vector by a distance of F=force×60 units. 4.4. If the target bone's new position (xi′,yi′) satisfies (xi′)2+(yi′)2>R, it is successfully ejected from the circle. R5. Shooter Position: 5.1. The shooter bone's resting position (s_x,s_y) is calculated as the hit coordinate (hit_x,hit_y) shifted by a recoil distance Frecoil=force×15 units. 5.2. If s_x2+s_y2≤R (shooter remains inside the circle) AND at least one target bone was ejected, the player scores points equal to the number of ejected bones, and gets another shot. 5.3. Otherwise, the player's turn ends. The shooter bone is returned to the player's hand. R6. Win / Loss / Draw: 6.1. The game ends immediately when all K bones are ejected from the circle. 6.2. The player with the highest score Sp wins. If scores are equal, a draw is declared. ## Edge cases - Tie at the end condition: Standard, handled by R6.2 (draw declared, or a single-shot playoff can be triggered). - A player with no legal move: Not applicable; pitching is always legal as long as target bones remain in the circle. - Repetition / cycles: Bounded because target bones are permanently removed from the circle once ejected, meaning target count K is strictly non-increasing, guaranteeing termination. - Simultaneous claims on the same resource: Not applicable; turns are strictly sequential. - Player elimination mid-round: Not applicable; no player is eliminated. - Resource exhaustion: None; target bones are finite and tracked. - Termination guarantee: Guaranteed by the monotonic decrease of target bones in the circle, combined with a maximum of 5 consecutive hits per turn [gap-fill: turn limit to prevent highly skilled agents from cleaning the board in a single turn]. ## State representation - Persistent state: List of active target bone coordinates {(xi,yi)}, list of scores per player, active player index, consecutive shot counter. - Per-turn ephemeral state: Declared aim point and force, sampled landing coordinate, and resulting collision vectors. - Observable information: Fully observable by all agents. ## Action space - `pitch(x, y, force)`: Select aim coordinate (x,y) on the board and throwing force, subject to x2+y2≤R2 and force∈[0.1,1.0]. ## Playability notes - Single-player-vs-AI: Excellent. The AI can aim directly at the centroid of the remaining target bone cluster and select a force vector optimized to eject targets without sending their own shooter out of bounds. - Group games (n>4): Generalizes cleanly. Turn rotation scales linearly with player count. - Physical-skill games: Physical pitching is abstracted by the standard deviation parameter σ linked to the agent's skill rating. - What is lost: The tactile experience of handling sheep bones, cleaning them, and assessing physical friction against the dirt surface. ## Implementation hints - Simple geometry and collision simulation. No need for complex rigid body physics; simple vector reflection and linear displacement models are sufficient. - First milestone: Set up the 2D arena and target coordinates, implement the stochastic aiming error, and verify that target bones are successfully moved and ejected by throws.

Download as JSON

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

Download JSON
Cite this page

Syrian Knucklebones (Syria). (n.d.). Games of Countries. https://gamesofcountries.com/games/sy-syria/al-ka-ab

@misc{gamesofcountries-sy-syria-al-ka-ab,
  title = {Syrian Knucklebones (Syria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/sy-syria/al-ka-ab}
}