Formal Specification
Faigathalhaa (Maldivian Sand Dodgeball / Leg-Strike) — Formal Specification
Maldives · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Faigathalhaa — AI-optimized specification
## General idea
Faigathalhaa is a spatial dodgeball simulation where an attacking team positions along outer perimeter lines to throw a ball at defending agents in an interior box, constrained by the strict rule that only hits below the waist (legs and feet) count as legal eliminations. Defenders maneuver and dodge on sand, attempting to catch thrown balls to revive eliminated teammates.
## Formal model
- **Abstraction taken:** Court space is discretized into a 2D grid with an inner defensive box ( meters) surrounded by outer throwing lanes. Throws are modeled with velocity vectors, target height classifications (below-waist vs torso/head), and interception envelopes.
- **Player/agent count:** 2 teams of 8 agents each.
- **Turn model:** Real-time ticked simulation over a fixed duration (e.g. 600 ticks = 10 minutes).
## Formal rules
R1. Court Setup: Rectangular interior court ; outer throwing boundary lanes surround .
R2. Attacking Action: Thrower holding ball selects `throw_ball(target_x, target_y, target_height_class)` where `target_height_class` is `Legal_Low` (legs/feet) or `Illegal_High`.
R3. Hit Resolution:
- If throw trajectory intersects a defender's bounding box:
- If `target_height_class == Legal_Low` and defender does not execute a successful dodge or catch: Defender is eliminated (`kandee`).
- If `target_height_class == Illegal_High`: Hit is void; ball possession is transferred to defenders.
R4. Catch & Revival:
- If a defender within catch radius executes `catch_ball()`: Defender catches ball cleanly; defender's team immediately revives the earliest eliminated teammate.
R5. Boundary Penalty: Any defender whose coordinates exit while dodging is eliminated immediately.
R6. Half-Time Swap: When all defenders are eliminated or tick limit 600 is reached, teams swap roles for the second half.
R7. [gap-fill] Scoring: 1 point scored for every defender eliminated within the time cap; if both teams eliminate all defenders, the team with the lower elapsed tick count wins.
## Edge cases
- **Tie at the end condition:** [gap-fill] If points and survival times are identical, a 1v1 sudden-death duel round is played.
- **A player with no legal move:** Defending agents always have valid spatial dodge movement vectors.
- **Repetition / cycles:** Explicitly bounded by the fixed 600-tick limit per half.
- **Simultaneous claims on the same resource or position:** Defender spatial displacement prevents overlapping coordinates.
- **Player elimination mid-round:** Eliminated agents are moved to the bench queue; revived agents respawn at a random open boundary coordinate in .
- **Resource exhaustion:** Single ball and fixed roster.
- **Termination guarantee:** Guaranteed by strict per-half tick limits.
## State representation
- **Persistent state:** Current half (1 or 2), team scores, team rosters, elimination/revival queues.
- **Per-turn ephemeral state:** Ball position and velocity, active thrower ID, defender coordinates and jump/dodge state flags.
- **Observable information:** Fully observable 2D/3D state.
## Action space
- Thrower: `pass_ball(teammate_id)`, `throw_ball(target_x, target_y, power)`.
- Defender: `dodge(vx, vy)`, `jump()`, `catch_ball()`.
## Playability notes
- **Single-player-vs-AI:** Highly playable; user can control a dodging defender or a perimeter thrower orchestrating rapid passing combinations.
- **Group games (n>4):** Multi-agent team coordination.
- **Physical-skill games:** Sand friction and jumping timing mapped to kinematic velocity caps and stamina decay.
- **What is lost:** Tactile sting of sand dodgeball impact.
## Implementation hints
Medium complexity. Key implementation aspect is collision checking between 2D ball trajectories and defender bounding boxes, with explicit vertical height classification. Suggested milestone: build a 2D top-down simulation of perimeter throwers passing and targeting a moving dodging agent.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Faigathalhaa (Maldivian Sand Dodgeball / Leg-Strike) (Maldives). (n.d.). Games of Countries. https://gamesofcountries.com/games/mv-maldives/faigathalhaa
@misc{gamesofcountries-mv-maldives-faigathalhaa,
title = {Faigathalhaa (Maldivian Sand Dodgeball / Leg-Strike) (Maldives)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mv-maldives/faigathalhaa}
}