Formal Specification
Knock Down the Prisoner / Topple the Can — Formal Specification
Philippines · dexterity-throw · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 4
# Tumbang Preso — AI-optimized specification
## General idea
An asymmetric target-striking and territory-retrieval game where Throwers attempt to knock over a central target (tin can) using parameterized ballistic throws from a baseline (). When the target is down, Throwers sprint into the active zone to recover their projectile (slipper) and return to the baseline; if the target is upright, the Guard agent can tag any un-shielded Thrower in the active zone to force an immediate role swap.
## Formal model
- **Abstraction taken:** The continuous physical throw is parameterized as a probability function . Movement across the 2D arena is discretized into discrete ticks where agent movement speed determines position updates. Stepping on one's own slipper provides temporary immunity from tagging.
- **Player/agent count:** 1 Guard () and Throwers (), with .
- **Turn model:** Sequential throwing phase from baseline, transitioning into simultaneous real-time tick retrieval phase ( tick).
## Formal rules
R1. Setup:
- Target (can) is placed at coordinate with status `UPRIGHT`.
- Guard spawns at .
- Throwers start at baseline with 1 slipper projectile each.
R2. Throwing phase:
- On their turn, a Thrower at baseline executes `throw_slipper(aim_offset)`:
- Slipper landing coordinate is sampled: .
- If landing position is within distance of target, target status becomes `DOWN`, and can is displaced to [gap-fill].
R3. Retrieval phase & Tagging:
- When target is `DOWN`:
- Guard must move to displaced can, execute `retrieve_can()`, return to , and execute `reset_can()` (which sets target to `UPRIGHT`). Guard cannot tag while target is `DOWN`.
- Throwers with slippers on field may enter zone to reach their slipper position and execute `pick_up()` or `step_on_slipper()`.
- When target is `UPRIGHT`:
- Guard can execute `tag(T_i)` if unit.
- A tag is valid only if is at , does NOT have `stepping_on_slipper == true`, and is NOT behind safety line .
R4. Role turnover:
- If a valid tag occurs, immediately becomes the new Guard , and former Guard becomes a Thrower with a 5-tick invulnerability window to reach [gap-fill].
R5. Match scoring & end condition:
- Each successful throw and recovery circuit completed by a Thrower awards 1 point.
- Match concludes after a fixed tick horizon ticks, or when a Thrower reaches 10 points [gap-fill].
## Edge cases
- Tie at the end condition: If two Throwers have equal points at , an individual target-accuracy shootout (closest throw to center) decides the winner [gap-fill].
- A player with no legal move: Throwers who have thrown their slipper have only movement/retrieval actions; Guard always has movement/can-reset actions.
- Repetition / cycles: Bounded by the hard countdown ceiling ticks.
- Simultaneous claims on the same resource or position: Slippers maintain independent coordinate identities; Guard tagging can resolve against multiple targets in adjacent cells via closest Euclidean distance.
- Player elimination mid-round: Not applicable; roles rotate dynamically between Guard and Throwers without player elimination.
- Resource exhaustion: Each Thrower has exactly 1 slipper; once thrown, they must physically retrieve it before throwing again.
- Termination guarantee: Enforced by the finite match tick limit .
## State representation
- Persistent state:
- `guard_id`: agent index .
- `thrower_scores`: array of size .
- `can_status`: enum (`UPRIGHT`, `DOWN`, `CARRIED`).
- `can_pos`: coordinate .
- `slipper_positions`: array of coordinates and statuses (`IN_HAND`, `ON_GROUND`, `STEPPED_ON`).
- `current_tick`: integer .
- Observable information: Fully observable public game state.
## Action space
- `throw_slipper(angle, power)`: executed at baseline .
- `move(dx, dy)`: continuous/discrete 2D displacement vector.
- `step_on_slipper()`: sets immunity flag while stationary at slipper position.
- `pick_up_slipper()`: transfers slipper to `IN_HAND` and removes immunity.
- `reset_can()`: Guard action at to restore `UPRIGHT` status.
- `tag(target_id)`: Guard action within range 1.0.
## Playability notes
- Single-player-vs-AI: Natural and engaging; 1 human player as a Thrower against an AI Guard and cooperative AI Throwers.
- Group games (n>4): Reduces smoothly to 1 Guard vs 2 Throwers without losing tactical retrieval tension.
- Physical-skill games: Throwing accuracy and sprint mechanics are parameterized via and speed scalars .
- What is lost in the adaptation: The physical slipper-kick trick shots and real-world slipper spin aerodynamics.
## Implementation hints
State machine transitions between `THROWING_STATE` and `RETRIEVAL_STATE`. Collision radius checks between Guard and Throwers. First milestone: Implement a 1v1 version (1 Guard, 1 Thrower) with deterministic can-knockdown to validate retrieval race mechanics.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Knock Down the Prisoner / Topple the Can (Philippines). (n.d.). Games of Countries. https://gamesofcountries.com/games/ph-philippines/tumbang-preso
@misc{gamesofcountries-ph-philippines-tumbang-preso,
title = {Knock Down the Prisoner / Topple the Can (Philippines)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ph-philippines/tumbang-preso}
}