Skip to main content
Formal Specification

Wolf and Geese — Formal Specification

Lithuania · chase-tag · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 10
# Vilkas ir žąsys — AI-optimized specification ## General idea Vilkas ir žąsys is an asymmetric line-tag and spatial shielding chase game. A leader gander (*žąsinas*) heads an articulated single-file chain of goslings (*žąselės*) holding onto each other's waists, confronting a solitary predatory wolf (*vilkas*). Following a formal dramatic dialogue, the wolf attacks, attempting to maneuver around the wide defensive body blocks of the gander to tag and peel off strictly the terminal agent at the tail of the snaking chain. ## Formal model - **Abstraction taken:** Discretized. Continuous 2D terrain is modeled as an open continuous bounding area [0,X]×[0,Y] with synchronous time ticks (Δt=0.1 s) [gap-fill]. The flock is modeled as an articulated kinematic chain (inverse kinematics / follow-the-leader distance constraints) anchored to the gander's position, with the gander exerting a directional blocking cone against the wolf's trajectory [gap-fill]. - **Player/agent count:** N agents (6≤N≤20): 1 Wolf (W), 1 Gander (G), and M=N−2 Goslings (g1,g2,…,gM). - **Turn model:** Synchronous tick-based movement and collision detection. ## Formal rules R1. Setup and Chain Hierarchy: - Playing area: Flat 2D bounds [0,15]×[0,15] m [gap-fill]. - Wolf W starts at lair (7.5,14.0). - Gander G starts at (7.5,3.0). - Goslings form an articulated chain behind G: agent g1 follows G, and agent gk follows gk−1 maintaining strict link distance dlink=0.6 m [gap-fill]. The active tail is the highest uncaptured index gtail. R2. The Dialogue Phase: - Prior to physical movement, a fixed 8-step call-and-response dialogue between G and W executes, concluding on the phrase "Žąselėms plikyti ir skaniam kepsneliui kepti!". R3. Kinematic Chase Mechanics: - Wolf W moves with maximum speed vW=4.0 m/s [gap-fill]. - Gander G moves with maximum speed vG=3.8 m/s and projects a defensive blocking barrier ℬG (a circular sector of radius 1.5 m and arc ±60∘ centered on G's facing direction) [gap-fill]. - Wolf Collision with Gander: Wolf W cannot penetrate ℬG; if W intersects ℬG, W's velocity vector is projected orthogonally along the barrier perimeter (deflected away). - Chain Kinematics: Gosling gk position updates to follow gk−1 with damping: p→gk(t+Δt)=p→gk(t)+λ(p→gk−1(t)−p→gk(t)−dlinkuˆ). R4. Tail-Targeting Rule and Capture Condition: - The wolf W is strictly prohibited from capturing G or any intermediate gosling gk (k<tail). Any contact with non-tail agents is a null collision [gap-fill]. - Capture occurs if and only if ‖p→W−p→gtail‖2≤rtag=0.5 m. R5. Capture Resolution and Line Repair: - When gtail is captured, that agent is removed from the chain and placed in the wolf's lair (`captured = true`). - The new tail becomes gtail−1. - Both W and G reset to starting positions for the next chase round (or continue continuously with the shortened line) [gap-fill]. R6. Game Termination and Win Condition: - The game concludes when all M goslings have been captured, or when a global tick limit Tmax⁡=1200 ticks expires [gap-fill]. - The first gosling captured becomes the new Wolf for the subsequent game session. ## Edge cases - Tie at the end condition: If time expires with goslings still uncaptured, the flock is declared victorious against the wolf. - A player with no legal move: Not applicable — wolf and gander navigate continuously; goslings execute deterministic following kinematics. - Repetition / cycles (and the loop-breaking rule): If the wolf fails to capture the tail within Tround=300 ticks, the current tail is declared escaped and safe for that sub-round, forcing a reset [gap-fill]. - Simultaneous claims on the same resource or position: Physical body overlap is prevented by kinematic circle collision hulls (r=0.3 m). - Player elimination mid-round; turn order repair: Captured goslings are removed from the tail index; the preceding chain element dynamically assumes the gtail role with zero turn disruption. - Resource exhaustion (pieces, tokens, space, time): Gosling chain count strictly decreases from M→0; total ticks are capped at Tmax⁡. - Termination guarantee: Provably terminates because the gosling flock is finite (M) and each round is bounded by Tround. ## State representation - Persistent state: Wolf ID, Gander ID, Gosling array g1…gM, capture bitmask, captured sequence queue. - Per-turn ephemeral state: Positions p→W,p→G,p→g1…p→gM, velocity vectors, active tail index tail∈{1…M}, gander blocking sector polygon ℬG. - Observable information: Fully observable — all agent positions, chain links, and capture statuses are public knowledge. ## Action space - `move_wolf(vx, vy)`: Wolf movement velocity vector. - `steer_flock(vx, vy, heading)`: Gander movement vector and defensive facing direction. ## Playability notes - Single-player-vs-AI: Highly engaging — human can control the Wolf (attempting to flank the line using speed and sudden changes of direction) or the Gander (controlling the snake tail through agile body blocking). - Group games (n>4): Natively designed for 6–20 players; reducing to 3 agents (1 wolf, 1 gander, 1 gosling) preserves the core blocking dynamic, though the snaking whip effect of a long chain is diminished. - Physical-skill games: Physical foot sprints and body-blocking are abstracted into velocity caps, turn rates, and angular collision sectors. - What is lost: The physical pull and centripetal whip-like force on children at the tail of the line, shrieking laughter, and handhold grip strain are translated into kinematic curves. ## Implementation hints Requires a 2D kinematic chain solver (Verlet integration or simple distance constraint relaxation) to model the snaking gosling line following the gander. First milestone: Build the follow-the-leader chain physics and gander blocking cone, verifying that the wolf cannot pass through the gander to reach the tail.

Download as JSON

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

Download JSON
Cite this page

Wolf and Geese (Lithuania). (n.d.). Games of Countries. https://gamesofcountries.com/games/lt-lithuania/vilkas-ir-zasys

@misc{gamesofcountries-lt-lithuania-vilkas-ir-zasys,
  title = {Wolf and Geese (Lithuania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/lt-lithuania/vilkas-ir-zasys}
}