Formal Specification
Turkish Hide and Seek — Formal Specification
Türkiye · hide-seek · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 3
# Saklambaç — AI-optimized specification
## General idea
A hide-and-seek game with a central home base (*kale*). The seeker (*ebe*) must find hiders and race them back to the base to lock in captures. The game features strict penalty resets on seeker misidentification (representing the "çanak çömlek patladı!" error) and strategic "mass-saves" where the final hider can free all captured teammates.
## Formal model
- **Abstraction taken:** The play area is modeled as a 2D coordinate space. The home base *Kale* is at `(0, 0)`. Hiding spots are defined as discrete 2D locations with occlusion multipliers. [gap-fill] The physical sprint to the base is modeled as a simultaneous-speed contest.
- **Player/agent count:** 1 active ebe `E`, and `K` hiders (where `K ∈ [3..12]`).
- **Turn model:** Tick-based sequential search and simultaneous sprints.
## Formal rules
R1. Board state:
- `kale_pos: Coordinate(0, 0)`.
- `hiding_spots: List of Coordinate(x, y)` (obstacles with occlusion ratings `0.0..1.0`).
- `hider_states: Array[K] of State` (Active_Hiding, Spotted, Safe, Captured).
- `scores: Array[N] of integer` (times being Ebe).
R2. Counting Phase:
- `E` stands at `(0, 0)` with zero vision.
- Hiders choose their target coordinates from `hiding_spots` and transition to `Active_Hiding`.
R3. Search Phase:
- On each tick `t`, `E` moves to a coordinate `pos_E`.
- For each hider `h` in `Active_Hiding` at `pos_h`:
- The probability of `E` spotting `h` is:
`P(Spot) = (1.0 - occlusion(pos_h)) * max(0.0, 1.0 - distance(pos_E, pos_h) / 15.0)`.
- If `Spot` is successful:
- `h` is declared `Spotted`.
- A sprint duel triggers immediately between `E` and `h` to reach `(0, 0)`.
R4. Sprint Duel:
- Both `E` and `h` simultaneously run to `(0, 0)`.
- The travel times are computed:
- `time_E = distance(pos_E, (0, 0)) / speed(E) * random(0.9, 1.1)`.
- `time_h = distance(pos_h, (0, 0)) / speed(h) * random(0.9, 1.1)`.
- [gap-fill] Misidentification error: Before resolving the race, `E` must declare the identity of the spotted hider. `P(Correct_ID) = skill(E) * 0.90`.
- If `E` calls the *wrong* name:
- Seeker error triggers: "Çanak çömlek patladı!"
- The round terminates immediately. All hiders are reset to `Active_Hiding`, `E` remains the `Ebe` and must recount.
- If correct:
- If `time_E < time_h`:
- `E` reaches base first. Hider `h` is set to `Captured`.
- If `time_h <= time_E`:
- Hider `h` reaches base first. Hider `h` is set to `Safe`.
R5. Active Hider Sneaking:
- On any search tick, an unspotted hider `h` can declare `sneak_to_base()`.
- A sprint duel triggers with `E` as in R4. If `h` wins, `h` is set to `Safe`.
R6. Mass-Save:
- If hider `h` is the last remaining active hider on the board (all others are `Safe` or `Captured`), and `h` executes `sneak_to_base()` and wins:
- `h` shouts "Çanak çömlek patladı!" (or mass-save).
- [gap-fill] All `Captured` hiders are instantly freed and set to `Safe`.
- Seeker `E` loses the round, scores are updated, and the same `E` must count again in the next round.
R7. End Condition & Role Transition:
- The search phase ends when no hiders remain in `Active_Hiding` or `Spotted`.
- If all hiders were captured or saved normally (no mass-save and no misidentification):
- The first hider who was set to `Captured` becomes the new `Ebe` for the next round.
R8. Win condition: The hider who was captured the fewest times after 5 rounds wins.
## Edge cases
- **Tie at the end condition:** Shared victory.
- **A player with no legal move:** Not applicable.
- **Repetition / cycles:** Sprints strictly terminate, and hider statuses advance monotonically towards final states (`Safe` or `Captured`), guaranteeing round completion.
- **Simultaneous claims on the same resource:** Handled by the continuous random floating-point sprint times (`time_E` and `time_h`), making exact ties probability-zero. In case of exact tie, hider is safe.
- **Player elimination mid-round:** Not applicable.
- **Resource exhaustion:** Not applicable.
- **Termination guarantee:** Strictly guaranteed by the finite number of hiders and their irreversible transition from hiding to base-racing.
## State representation
- Persistent state:
- `ebe_id: integer`.
- `hider_states: Array[K] of integer` (0: Hiding, 1: Spotted, 2: Safe, 3: Captured).
- `player_scores: Array[N] of integer`.
- `round_count: integer`.
- Observable information:
- Hiders observe all positions and states.
- Seeker observes only their own position and spotted/revealed hiders.
## Action space
- `sneak_to_base()`: valid only for an active hider.
- `search_coordinate(coordinate)`: valid only for Ebe.
- `declare_sobe(target_hider_id)`: Seeker declares sobe for a spotted hider.
## Playability notes
- Single-player-vs-AI: Excellent. Can be played as the Seeker trying to scan obstacles and coordinate sprint races, or as a Hider timing when the Seeker's back is turned to sneak and save teammates.
- Group games: Generalizes perfectly to any number of players.
- Physical-skill games: Physical hiding, spotting, and sprinting are fully abstracted into coordinate geometry and relative travel-time equations.
- What is lost: The physical stealth of squeezing behind tight bushes and the heart-pumping adrenaline of the sprint.
## Implementation hints
Medium-high complexity. Focus on implementing the sprint-race timer (R4) and tracking the state transitions of the hiders. First milestone: build the 2D coordinate board with home base (0,0) and a simple hider-finding loop with static hiders before implementing the sprint racing.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Turkish Hide and Seek (Türkiye). (n.d.). Games of Countries. https://gamesofcountries.com/games/tr-turkiye/saklambac
@misc{gamesofcountries-tr-turkiye-saklambac,
title = {Turkish Hide and Seek (Türkiye)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/tr-turkiye/saklambac}
}