Formal Specification
Heaven and Earth Tag — Formal Specification
Philippines · chase-tag · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Langit-Lupa — AI-optimized specification
## General idea
A 2D discrete grid pursuit-evasion game with heterogeneous terrain heights. The arena contains flat ground cells (*Lupa*, elevation ) and elevated sanctuary cells (*Langit*, elevation ). Runners standing on have immunity from tagging but are subject to a strict countdown timer ( ticks); the Chaser moves across attempting to tag any Runner occupying or transitioning across .
## Formal model
- **Abstraction taken:** Arena is discretized into a 2D integer grid of size . Each cell has terrain property . cells represent elevated platforms with a capacity of at most 2 agents [gap-fill]. The Chaser is strictly constrained to cells; Runners can occupy both and .
- **Player/agent count:** 1 Chaser () and Runners (), with .
- **Turn model:** Simultaneous discrete execution ticks ( step per round).
## Formal rules
R1. Setup:
- Chaser is assigned via initial round-robin chant simulator or uniform sampling.
- Chaser spawns at ground center .
- Runners spawn on distinct elevated platforms with .
- Platform stay timer for each runner is initialized: `stay_timer[i] = 0`.
R2. Movement & Platform Constraints:
- Every tick, all agents submit a 4-directional movement vector .
- For Chaser : Destination must satisfy .
- For Runners :
- If on and , `stay_timer[i]` increments by .
- If `stay_timer[i] > 10` (stay ceiling): Runner is forced off platform; must move to an adjacent cell, and `stay_timer[i]` resets to 0 [gap-fill].
- Platform capacity limit: If a cell already contains 2 runners, a 3rd runner attempting to enter is blocked or displaced onto .
R3. Tagging Resolution:
- A tag occurs at tick if unit AND .
- If tagged:
- Runner becomes the new Chaser ().
- Former Chaser becomes a Runner and receives an invulnerability shield for 5 ticks to seek platform sanctuary (`immune_timer = 5`) [gap-fill].
- `taya_duration[R_i]` records time spent as Chaser.
R4. Scoring & Termination:
- Game runs for a fixed global horizon of ticks.
- Each agent's objective is to minimize total ticks spent as the Chaser: .
- The agent with the minimum Chaser penalty wins the match.
## Edge cases
- Tie at the end condition: If two agents have equal minimum Chaser duration, the runner with more platform transitions is ranked higher [gap-fill].
- A player with no legal move: is legal on platforms (up to stay limit) and ground; forced descent resolves any stalling.
- Repetition / cycles: Bounded by the hard global countdown clock ticks.
- Simultaneous claims on the same resource or position: Platform capacity is capped at 2; conflicts resolve by agent index order.
- Player elimination mid-round: Dynamic role swap without agent elimination.
- Resource exhaustion: Elevated platforms are permanent and reusable.
- Termination guarantee: Enforced by the global tick horizon .
## State representation
- Persistent state:
- `grid_elevation`: binary matrix ( = ground, = platform).
- `agent_positions`: array of coordinates .
- `current_chaser_id`: integer .
- `stay_timers`: array of size .
- `immune_timers`: array of size .
- `chaser_accumulated_ticks`: array of size .
- `current_tick`: integer .
- Observable information: Fully observable public state.
## Action space
- `move(dx, dy)`: with , subject to terrain height constraints.
## Playability notes
- Single-player-vs-AI: Playable as a high-speed parkour evasion challenge against an intelligent hunting AI.
- Group games (n>4): Easily accommodates 3 to 6 agents on a standard platform map.
- Physical-skill games: Real-world climbing balance is abstracted into discrete elevation zones and platform stay timers.
- What is lost in the adaptation: The physical scramble of multiple children crowding onto a narrow wooden bench.
## Implementation hints
2D discrete matrix with elevation bitmask. Pathfinding for Chaser can use A* on the sub-graph where . First milestone: Implement 1 Chaser vs 2 Runners on a small 10x10 map with 2 platform islands to verify stay timer forced-descent logic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Heaven and Earth Tag (Philippines). (n.d.). Games of Countries. https://gamesofcountries.com/games/ph-philippines/langit-lupa
@misc{gamesofcountries-ph-philippines-langit-lupa,
title = {Heaven and Earth Tag (Philippines)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ph-philippines/langit-lupa}
}