Architecture scaffold only

Polity

You don't conquer cities. You earn them. A turn-based strategy game where institutions — not armies — decide who prospers. This scaffold establishes the module boundaries; the map, policy tree, and gameplay loop land next.

Deterministic Sim Core

Pure TypeScript computes every number — production, prices, migration, events. Zero dependencies, seeded RNG, unit-tested. Same seed, same game.

Content Pipeline

26 policies, 5 cities, and 21 events live in JSON with cited empirical anchors, validated by schema before they touch the sim.

Language-Only AI Boundary

The LLM writes headlines, advice, and negotiation replies. It can propose a deal; only the validated engine executes. Template fallbacks keep the game alive offline.

Isometric 2.5D Renderer

Orthographic board locked at a fixed 45° angle, instanced buildings. Renders projections of validated state — never raw AI text.

Build order is contract first: the deterministic sim computes, the AI speaks, the renderer draws. Mocked gameplay is never presented as real in the demo.

Loading browser-only game engine...