Formal Specification
Countries and Cities on Dirt (Polish Knife Land Conquest) — Formal Specification
Poland · dexterity-throw · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Państwa-miasta na ziemi — AI-optimized specification
## General idea
A geometric territorial elimination game played on a continuous 2D circular map. Agents stand within their owned polygons, throwing a ballistic knife into opposing territories to bisect enemy polygons and annex adjacent severed land fragments. An agent is eliminated when their total polygon area drops below a minimal viability threshold.
## Formal model
- **Abstraction taken:** The continuous knife throw and ground-penetration physics are modeled as a 2D landing coordinate with a stochastic stick orientation angle and binary penetration success probability . The map is represented as a planar polygon partition of a unit disk .
- **Player/agent count:** 2 to 4 agents indexed .
- **Turn model:** Sequential cyclic turn order.
## Formal rules
R1. **Setup:** The unit disk (area ) is partitioned into equal radial wedges (each area ).
R2. **Throw declaration:** Active agent chooses a target coordinate lying inside an opponent's territory polygon ().
- The agent's physical stance requires their center of gravity to remain within .
- Realized landing point .
- Stick success check: .
- Realized blade line orientation: .
R3. **Geometric bisection & annexation:**
- If and the stick roll succeeds:
- The line splits polygon into two sub-polygons and .
- [gap-fill] The thrower annexes the sub-polygon that shares the longer boundary edge with thrower's polygon , merging it into .
- Opponent's territory updates to .
- If the throw misses or fails to stick: No territory updates; turn ends.
R4. **Elimination threshold:**
- After territory updates, if an agent's total area :
- Agent is eliminated from the game.
- [gap-fill] Any residual sub-threshold area of is absorbed proportionally by all adjacent neighboring territories.
R5. **Victory condition:** When only one surviving agent remains (holding of total map area), that agent wins immediately.
## Edge cases
- **Tie at the end condition:** Not applicable; territorial annexation is strictly monotonic, leading to a single survivor.
- **A player with no legal move:** If an agent's territory becomes non-contiguous or too small to target an opponent, they are eliminated by R4.
- **Repetition / cycles:** Bounded because successful hits transfer strictly non-zero area from defenders to attackers; with finite total area , the state must reach an absorbing single-agent monopoly.
- **Simultaneous claims on the same resource or position:** Turns are sequential; polygon clipping operations produce mutually disjoint planar partitions at all times.
- **Player elimination mid-round; turn order repair:** Eliminated agents are removed from the active turn rotation list without disrupting cyclic order.
- **Resource exhaustion:** Total area is strictly conserved.
- **Termination guarantee:** The Markov process over polygon areas with absorbing boundaries at guarantees almost sure termination in finite steps.
## State representation
- **Persistent state:** `territory_polygons` (Map[AgentId, MultiPolygon2D]), `active_agents` (List[AgentId]), `active_turn_index` (Int).
- **Per-throw ephemeral state:** `target_coord` (Coord2D), `landing_coord` (Coord2D), `blade_angle` (Float), `is_stuck` (Bool).
- **Observable information:** Fully observable state; all territory boundary coordinates and area percentages are public.
## Action space
- `throw_knife(target_x: Float, target_y: Float)`: Aims throw at target coordinate within disk .
## Playability notes
- **Single-player-vs-AI:** Highly engaging geometric strategy duel (human calculating optimal Voronoi/polygon cut lines against AI bots).
- **Group games (n>4):** Reduces to 2–4 agents natively.
- **Physical-skill games:** Knife rotation, angle, and ground dampness abstracted to scalar precision and success probability .
- **What is lost:** Tactile thumb flick on the scyzoryk blade, feeling soil density, and physical balancing acrobatics on shrinking plots.
## Implementation hints
Use standard 2D computational geometry libraries (e.g. Shapely, Clipper, or simple line-polygon intersection algorithms). First milestone: implement 2-agent disk bisection with straight chord cuts, tracking polygon areas after each successful hit.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Countries and Cities on Dirt (Polish Knife Land Conquest) (Poland). (n.d.). Games of Countries. https://gamesofcountries.com/games/pl-poland/panstwa-miasta-na-ziemi
@misc{gamesofcountries-pl-poland-panstwa-miasta-na-ziemi,
title = {Countries and Cities on Dirt (Polish Knife Land Conquest) (Poland)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pl-poland/panstwa-miasta-na-ziemi}
}