Formal Specification
Kick the Can / Can Tag — Formal Specification
Japan · hide-seek · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Kankeri — AI-optimized specification
## General idea
A tactical hide-and-seek, perimeter-guarding, and infiltration game centered on a metal can placed inside a home circle. The "Oni" roams the map to discover hidden players and sprints back to tag the can to jail them, while uncaptured hiders attempt to stealthily infiltrate the central base and kick the can away to trigger a mass prison break.
## Formal model
- **Abstraction taken:** Continuous park terrain, three-dimensional physical cover, line-of-sight occlusion, and foot sprints are discretized onto a 2D navigation graph. Nodes represent hiding spots, open traversal zones, and the central can base. Time is discretized into synchronous movement ticks.
- **Player/agent count:** 1 Oni agent vs `n-1` hider agents (minimum total players: 3; standard 2-agent reduction: 1 Oni, 1 Hider).
- **Turn model:** Synchronous simultaneous agent movement ticks.
## Formal rules
R1. Map setup: A graph `G = (V, E)` where `C in V` is the central can base. Specific nodes have cover attributes `Cover in {NONE, PARTIAL, FULL}` and mutual line-of-sight (LOS) visibility tables.
R2. Opening scatter phase:
- At tick 0, the can is propelled to a peripheral node `V_kick`.
- The Oni must move to `V_kick` and return it to `C`, requiring `2 * dist(C, V_kick)` ticks.
- During retrieval, hiders move freely to initial concealment nodes.
R3. Search and Patrol phase:
- On each tick, all active agents simultaneously choose an action: `move(neighbor_node)` or `hide()`.
- Sighting occurs if `LOS(pos_oni, pos_hider) == True` and the hider's node is not providing `FULL` cover during a `hide()` action.
R4. Capture execution:
- Upon sighting Hider `H`, the Oni may attempt capture by moving to `C` and declaring `tag_can(H)`.
- If the Oni occupies `C` while `H` is known and not on `C`, `H` is placed in `Prison` at `C`.
R5. Prison Break (*Kankeri*):
- If any free hider reaches node `C` and executes `kick_can()` before the Oni can occupy `C` and tag it, the can is propelled to a new peripheral node `V_new`.
- All players in `Prison` are immediately liberated to `FREE` status and scatter.
- The Oni must retrieve the can to `C` before any further captures can be declared.
R6. Win conditions:
- Oni victory: All `n-1` hiders are simultaneously held in `Prison`.
- Hider victory: At least 1 hider remains free when total game ticks reach `T_max = 100`.
R7. [gap-fill] Anti-camping rule: If the Oni remains on or adjacent to node `C` (`dist <= 1`) for more than 5 consecutive ticks without active LOS to any hider, all hiders receive full map visibility of the Oni for the next 3 ticks.
R8. [gap-fill] Kicked can trajectory: A kicked can lands at a deterministic distance of 6 edges in the direction opposite the kicker's entry vector.
R9. [gap-fill] Simultaneous base arrival: If the Oni and a free hider arrive at node `C` on the exact same tick, the kick takes precedence over the tag (*runner priority*).
R10. [gap-fill] Step speed differential: In open terrain (`Cover: NONE`), sprinting agents may traverse 2 edges per tick, whereas moving through dense brush (`Cover: FULL`) restricts movement to 1 edge per tick.
## Edge cases
- **Tie at the end condition:** Evaluated at tick 100: if all hiders are imprisoned, Oni wins; otherwise, hiders win.
- **A player with no legal move:** All nodes maintain at least one passable outbound edge; agents may always choose to stay and hide.
- **Repetition / cycles:** Agents can loop between cover positions; strictly bounded by the 100-tick game cap (R6).
- **Simultaneous claims on the same resource or position:** Resolved by runner-priority rule on node `C` (R9); multiple agents may co-occupy hiding nodes.
- **Player elimination mid-round:** Imprisoned hiders remain in passive state at node `C` until rescued by a teammate's `kick_can()`.
- **Resource exhaustion:** Can is an indestructible persistent objective.
- **Termination guarantee:** Guaranteed by the hard cap of 100 simulation ticks (R6).
## State representation
- **Persistent state:** `graph_topology` (adjacency and LOS matrices), `oni_id` (agent ID), `round_tick` (int in `[0..100]`), `can_position` (node ID).
- **Per-tick state:** `agent_positions` (dict: `agent_id -> node_id`), `agent_status` (dict: `agent_id -> FREE | IMPRISONED`), `known_targets` (set of spotted hiders), `camping_counter` (int).
- **Observable information:** Imperfect information: Hiders observe Oni if in line of sight; Oni observes hiders only when line of sight is unbroken; imprisoned players observe base node.
## Action space
- Oni: `move(target_node)`, `tag_can(hider_id)`.
- Hider: `move(target_node)`, `hide()`, `kick_can()`.
## Playability notes
- **Single-player-vs-AI:** Highly engaging tactical problem; AI Oni optimizes patrol coverage and base defense, while AI hiders balance stealth approaches with coordinated distraction tactics.
- **Group games (n>4):** Reduces naturally to 2 agents (1 Oni vs 1 Hider) or scales up to 10 agents with multi-agent cooperation.
- **Physical-skill games:** Physical stealth and sprint speed are discretized into edge traversal costs and LOS probabilities.
- **What is lost in the adaptation:** Physical hiding behind real 3D objects, climbing trees, heart-pounding physical stillness, and the loud metallic clatter of a kicked tin can.
## Implementation hints
Discrete 2D grid graph with precomputed raycast visibility. Simple heuristic search (A* navigation) for path planning. First milestone: implement 1v1 grid movement with LOS calculation and can-tagging / can-kicking triggers.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Kick the Can / Can Tag (Japan). (n.d.). Games of Countries. https://gamesofcountries.com/games/jp-japan/kankeri
@misc{gamesofcountries-jp-japan-kankeri,
title = {Kick the Can / Can Tag (Japan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/jp-japan/kankeri}
}