Skip to main content
Formal Specification

Knock Down the Prisoner / Topple the Can — Formal Specification

Philippines · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 4
# Tumbang Preso — AI-optimized specification ## General idea An asymmetric target-striking and territory-retrieval game where N Throwers attempt to knock over a central target (tin can) using parameterized ballistic throws from a baseline (Y=0). 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 P(topple)=f(accuracy_skill,distance). 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 (G) and N Throwers (T1..Tk), with k∈[2..5]. - **Turn model:** Sequential throwing phase from baseline, transitioning into simultaneous real-time tick retrieval phase (Δt=1 tick). ## Formal rules R1. Setup: - Target (can) is placed at coordinate (0,10) with status `UPRIGHT`. - Guard G spawns at (1,10). - Throwers T1..Tk start at baseline Y≤0 with 1 slipper projectile each. R2. Throwing phase: - On their turn, a Thrower Ti at baseline executes `throw_slipper(aim_offset)`: - Slipper landing coordinate is sampled: (xs,ys)∼𝒩(target,σ2). - If landing position is within distance d≤0.5m of target, target status becomes `DOWN`, and can is displaced to (xc,yc) [gap-fill]. R3. Retrieval phase & Tagging: - When target is `DOWN`: - Guard G must move to displaced can, execute `retrieve_can()`, return to (0,10), and execute `reset_can()` (which sets target to `UPRIGHT`). Guard cannot tag while target is `DOWN`. - Throwers with slippers on field may enter zone Y>0 to reach their slipper position (xs,ys) and execute `pick_up()` or `step_on_slipper()`. - When target is `UPRIGHT`: - Guard can execute `tag(T_i)` if distance(G,Ti)≤1.0 unit. - A tag is valid only if Ti is at Y>0, does NOT have `stepping_on_slipper == true`, and is NOT behind safety line Y≤0. R4. Role turnover: - If a valid tag occurs, Ti immediately becomes the new Guard G′, and former Guard G becomes a Thrower with a 5-tick invulnerability window to reach Y≤0 [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 Tmax⁡=500 ticks, or when a Thrower reaches 10 points [gap-fill]. ## Edge cases - Tie at the end condition: If two Throwers have equal points at Tmax⁡, 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 Tmax⁡=500 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 Tmax⁡. ## State representation - Persistent state: - `guard_id`: agent index 0..k. - `thrower_scores`: array of size k. - `can_status`: enum (`UPRIGHT`, `DOWN`, `CARRIED`). - `can_pos`: coordinate (x,y). - `slipper_positions`: array of k coordinates (xi,yi) and statuses (`IN_HAND`, `ON_GROUND`, `STEPPED_ON`). - `current_tick`: integer 0..500. - Observable information: Fully observable public game state. ## Action space - `throw_slipper(angle, power)`: executed at baseline Y≤0. - `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 (0,10) 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 σthrow and speed scalars vrun. - 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 JSON
Cite 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}
}