Formal Specification
Saga Seed Flicking — Formal Specification
Singapore · dexterity-small · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Main Biji Saga — AI-optimized specification
## General idea
Main Biji Saga is a turn-based 2D precision flicking game on a bounded tabletop scattered with small seeds. The active agent selects an unobstructed pair of seeds, aiming to strike the target seed directly with the shooter seed while avoiding collateral collisions with any bystander seeds.
## Formal model
- **Abstraction taken:** The 2D table plane ( cm) contains circular discs of radius cm. A legal shot requires an unblocked line of sight between two selected seeds and . The flick applies an impulse vector with execution noise.
- **Player/agent count:** 2 to 4 agents.
- **Turn model:** Sequential turns, with bonus turns granted upon successful single-target capture.
## Formal rules
R1. Setup: seeds are randomly distributed uniformly on cm such that no two seeds overlap ().
R2. Legal Action Set: The active agent may select any pair of seeds such that the line segment connecting and does not intersect any other seed within clearance width .
R3. Strike Execution & Collision Physics:
- The agent specifies an impulse vector from seed toward seed .
- Execution noise is applied to the angle: , where .
- 2D disc collision physics simulates the trajectories of all moving seeds.
R4. Outcome Resolution:
- Clean Hit (Success): If seed strikes seed and neither seed makes contact with any other seed , seed is captured (+1 score to active agent), seed is removed from the board, and the active agent retains the turn.
- Fault (Failure): If seed misses seed , or if any seed collides with a third bystander seed , no capture occurs, and the turn passes to the next player.
R5. Win Condition: When all seeds are captured (or when fewer than 2 seeds remain on the board), the agent with the highest total captured count wins. [gap-fill] If 40 turns elapse without a capture, the game terminates immediately and highest score wins.
## Edge cases
- Tie at the end condition: If two agents tie with equal captured seeds, a sudden-death single flick between 2 placed seeds at fixed distance (15 cm) determines the winner [gap-fill].
- A player with no legal move: If no legal unobstructed seed pair exists on the board, all remaining seeds are gathered, scattered again, and play resumes.
- Repetition / cycles: Bounded by the 40-turn stagnant shot cap [gap-fill].
- Simultaneous claims on the same resource or position: Turns are strictly sequential; board state updates synchronously after each shot.
- Player elimination mid-round: Not applicable; all players remain active until seed exhaustion.
- Resource exhaustion: Monotonically decreasing seed count ().
- Termination guarantee: Guaranteed by monotonic depletion of seeds and the 40-turn stagnation cap.
## State representation
- Persistent state:
- `captured_scores`: array of size (integers ).
- `active_player`: integer .
- `stagnant_turns`: integer .
- Ephemeral state:
- `seed_positions`: array of remaining 2D coordinates in .
- Observable information: Fully observable to all agents.
## Action space
- `flick_pair(shooter_id, target_id, power)`:
- `shooter_id`, `target_id` .
- `power` .
## Playability notes
- Single-player-vs-AI: Fully natural; AI performs raycast checks across all pairs to find high-probability clean shots.
- Group games (n>4): Generalizes cleanly with standard sequential rotation.
- Physical-skill games: Fingernail flicking precision is modeled via Gaussian angular spread and distance-dependent momentum transfer.
- What is lost: Glossy heart-shaped tactile smoothness of real saga seeds and the breath-holding suspense of finger gap testing.
## Implementation hints
Geometric line-of-sight filter followed by simple 2D circle-circle collision check. Very fast to evaluate and simulate.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Saga Seed Flicking (Singapore). (n.d.). Games of Countries. https://gamesofcountries.com/games/sg-singapore/biji-saga
@misc{gamesofcountries-sg-singapore-biji-saga,
title = {Saga Seed Flicking (Singapore)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/sg-singapore/biji-saga}
}