Formal Specification
Sentry guard game — Formal Specification
Georgia · hide-seek · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Sakaraulo (საყარაულო) — AI-optimized specification
## General idea
A traditional Georgian tactical stealth and base-defense game simulating medieval frontier watchtower guarding. A sentry guard defends a central fortress (*tsikhe*), patrolling the perimeter and spotting creeping infiltrators; sneaking infiltrators advance through cover to touch the fortress and liberate captured comrades.
## Formal model
- **Abstraction taken:** 2D continuous/grid environment within a radius centered at Fortress . The sentry possesses a dynamic directional vision cone with range attenuation and occlusion checks. Infiltration dashes and sentry capture calls are resolved via spatial arrival races.
- **Player/agent count:** 1 Sentry Guard agent (), Infiltrator agents (, with ).
- **Turn model:** Sequential countdown phase followed by synchronous discrete time ticks (1 tick = 0.5 seconds).
## Formal rules
R1. Setup & Counting:
- Fortress is located at . Outer perimeter boundary is .
- Sentry remains at with zero vision for ticks.
- Infiltrators scatter and conceal behind terrain obstacles. Initial statuses: `HIDDEN`.
- `prisoner_pool = []`.
R2. Sentry Patrol & Detection:
- Sentry patrols within anchor radius from , maintaining orientation angle and a vision cone.
- For each `HIDDEN` infiltrator , evaluate line-of-sight:
- If is within vision cone, not fully occluded by cover, and detected: Sentry initiates `tag_base_and_call(I_j)`.
- Both and race toward .
- If reaches first: status becomes `CAPTURED` and is added to `prisoner_pool`.
R3. Infiltration & Fortress Capture:
- When looks away or patrols another flank, hidden infiltrators execute `sneak_advance(dx, dy)` or `dash_to_fortress()`.
- If an infiltrator reaches before being called/intercepted:
- executes `touch_fortress()`.
- **Fortress Captured (*Tsikhe davikave*):** Round terminates immediately with victory for Infiltrators.
- All agents in `prisoner_pool` are liberated.
R4. Round Conclusion & Role Rotation:
- **Sentry Victory:** If all infiltrators are placed in `prisoner_pool` without the fortress being captured:
- Sentry wins the round.
- The first infiltrator captured becomes the new Sentry Guard for the next round.
- **Infiltrator Victory:** If the fortress is captured, the current Sentry must serve as guard again for the subsequent round.
## Edge cases
- Tie at the end condition: If Sentry and Infiltrator touch the fortress on the exact same tick, the benefit of the doubt goes to the Infiltrator (Fortress captured) [gap-fill].
- A player with no legal move: Not applicable; guard patrols/scans; infiltrators hold cover or advance.
- Repetition / cycles: Infiltrators must advance to win; stationary stalling is bounded by a maximum round duration ticks [gap-fill].
- Simultaneous claims on the same position: Multiple infiltrators dashing simultaneously are resolved in arrival order.
- Elimination mid-round and turn-order repair: Captured infiltrators wait in `prisoner_pool` at base until round concludes or liberation occurs.
- Resource exhaustion: Not applicable; fixed agent pool and indestructible terrain.
- Termination guarantee: Because each advance has a non-zero detection hazard rate and a finite round timer of ticks enforces conclusion, every round terminates deterministically.
## State representation
- Persistent state:
- `sentry_id`: Agent ID.
- `first_captured_id`: Agent ID or null.
- `round_number`: Integer.
- Per-tick ephemeral state:
- `positions`: Map of Agent ID .
- `guard_facing_angle`: Float .
- `infiltrator_states`: Map of Infiltrator ID .
- `prisoner_pool`: List of Agent IDs.
- Observable information: Sentry observes obstacles and detected infiltrators within vision cone; Infiltrators observe Sentry location and facing direction.
## Action space
- `patrol_move(dx, dy, facing_angle)`: Sentry movement and gaze direction.
- `tag_base_and_call(target_id)`: Sentry base sprint and capture call.
- `sneak_advance(dx, dy)`: Infiltrator low-visibility advance.
- `dash_to_fortress()`: Infiltrator all-out sprint to .
- `touch_fortress()`: Fortress capture trigger.
## Playability notes
- Single-player-vs-AI: Outstanding asymmetric stealth/defense game. Player can take the role of the solitary Sentry rotating patrol vectors, or play an Infiltrator timing stealth advances between sentry sweeps.
- Group reduction: Reducible to 1 Sentry and 3 Infiltrators.
- Physical-skill games: Peripheral night vision, shadow concealment, and sudden sprint bursts are mapped to vision cone raycasting and speed checks.
- What is lost: The tension of holding breath behind an ancient mossy stone wall and the triumphant roar of *"Tsikhe davikave!"* echoing across the orchard.
## Implementation hints
2D top-down grid/continuous engine with a dynamic vision cone and raycast line-of-sight occlusion. First milestone: implement guard vision cone rotation and stealth advance detection before adding sprint races to and prisoner pool liberation.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sentry guard game (Georgia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ge-georgia/sakaraulo
@misc{gamesofcountries-ge-georgia-sakaraulo,
title = {Sentry guard game (Georgia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ge-georgia/sakaraulo}
}