Formal Specification
Mandi (Peg-and-Stick Striking Game) — Formal Specification
Maldives · stick-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Mandi — AI-optimized specification
## General idea
Mandi is a discrete bat-and-peg distance striking game. A batter leverages a small wooden peg (*foali*) upward from a ground pit and strikes it into the outfield; if uncaught, the batter attempts a second tipping strike to maximize total distance measured in stick units. Strategy centers on trajectory angle, power optimization, and outfield placement away from fielders.
## Formal model
- **Abstraction taken:** The 3D mechanics of flicking, tipping, and striking the wooden peg are abstracted into parameterized trajectory sampling with distance, flight duration, and dispersion.
- **Player/agent count:** 2 teams; 1 batter on field facing fielders ().
- **Turn model:** Sequential turns per batter within an inning.
## Formal rules
R1. Setup: Peg is placed across the pit (`valhu`); batter chooses `flick_and_strike(angle, power)`.
R2. Trajectory 1: Peg travels distance along azimuth .
R3. Catch Resolution:
- If a fielder intercepts the peg before landing: Batter is eliminated (`kandee`), scoring 0 points.
- If uncaught: Fielder nearest the landing spot attempts `throw_at_bat(accuracy)`.
R4. Bat-Hit Defense:
- The bat is resting across the pit (target width m).
- If the throw hits the bat (): Batter is eliminated immediately.
R5. Phase 2 (Tipping Strike):
- If throw misses the bat: Batter executes `tip_and_strike(power)` from the peg's landing position.
- Peg gains additional distance .
R6. Scoring: Total score for the turn is where meters.
R7. [gap-fill] Inning turnover: When all rostered batters on a team are eliminated, teams swap roles.
R8. Win Condition: Team with the highest total points after an agreed number of innings (e.g. 2 innings per side) wins.
## Edge cases
- **Tie at the end condition:** [gap-fill] Highest single-turn distance by any individual batter acts as the tiebreaker.
- **A player with no legal move:** Not applicable; batting agent always has legal action parameters.
- **Repetition / cycles:** Bounded strictly by team roster size and elimination rules.
- **Simultaneous claims on the same resource or position:** Closest fielder is assigned primary retrieval duty.
- **Player elimination mid-round:** Advances to the next batter in the queue.
- **Resource exhaustion:** Roster size and turn limits are finite.
- **Termination guarantee:** Guaranteed by monotonic progression through a finite batter queue.
## State representation
- **Persistent state:** Inning count, team scores, active batter index, batter elimination list.
- **Per-turn ephemeral state:** Peg position , phase (1: Flick, 2: Return Throw, 3: Tip), current turn accumulated distance.
- **Observable information:** Fully observable 2D field coordinates and player locations.
## Action space
- `flick_and_strike(angle, power)`: Launch peg from pit.
- `throw_at_bat()`: Fielder action attempting direct strike on the resting bat.
- `tip_and_strike(power)`: Execute secondary aerial strike.
## Playability notes
- **Single-player-vs-AI:** Natural; human player optimizes strike parameters against AI fielder coverage, or manages field placement.
- **Group games (n>4):** Reduces cleanly to 2 competing captain agents.
- **Physical-skill games:** Physical bat-on-peg impact is abstracted to power and timing distributions.
- **What is lost:** Hand-eye timing of mid-air double-contact striking is replaced by continuous parameter sampling.
## Implementation hints
Low complexity. Simple projectile math combined with 2D point distance checks. Suggested milestone: implement deterministic phase state machine before tuning the probabilistic trajectory functions.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Mandi (Peg-and-Stick Striking Game) (Maldives). (n.d.). Games of Countries. https://gamesofcountries.com/games/mv-maldives/mandi
@misc{gamesofcountries-mv-maldives-mandi,
title = {Mandi (Peg-and-Stick Striking Game) (Maldives)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mv-maldives/mandi}
}