Skip to content

3031 source-verified AI-built games from 2724 repos, attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet and Claude Fable

3.3 KB
Raw Blame
{
  "repo": "cogdub/PoliticalTurnBasedSim",
  "created_at": "2026-10-03T23:33:37Z",
  "pushed_at": "2026-10-04T01:19:18Z",
  "description": null,
  "homepage": null,
  "default_branch": "claude/grand-strategy-nlp-game-hcp3dq",
  "language": "TypeScript",
  "readme": "# Statecraft 2026 (PoliticalTurnBasedSim)\n\nA turn-based political, economic, diplomatic and military grand-strategy game. You lead a real-world country from **January 1, 2026** by giving orders and holding conversations in plain language.\n\n> The player has unlimited freedom to attempt things, but not unlimited power to make them happen.\n> The AI interprets. The simulation decides. The world reacts.\n\n- Each turn is one month, and you get **3 Government Actions** per month. Talking to foreign leaders is free.\n- Natural-language orders become *attempts*. A deterministic simulation validates them (authority, resources, time) and resolves them.\n- Every country is an autonomous AI actor that follows the same rules as the player.\n- **Prototype slice:** Europe and Eastern Europe. Playable countries: Poland, Ukraine, Russia, Germany, France, the UK, Lithuania, Belarus, Turkey, the US and China. A Rest-of-World aggregate covers economics only.\n\nThe design is in [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md).\n\n## Run it\n\nRequires Node 22.13 or later.\n\n```bash\nnpm install\nnpm run build          # build the browser client\nnpx tsx apps/server/src/main.ts\n# open http://127.0.0.1:8787\n```\n\nFor development with hot reload, use `npm run dev`. The server runs on :8787 and Vite on :5173, which proxies `/api`.\n\n**Language model:** set `ANTHROPIC_API_KEY`, or paste a key in **Settings** in the game; it is kept in server memory only. Without a key the game runs in **offline mode**, with a rule-based order parser and template dialogue and narration. You can also pick models per role, e.g. `GS_LLM_MODEL=claude-opus-5-5` or `GS_LLM_MODEL_NARRATOR=…`.\n\nTo host it on a website, see [`docs/DEPLOY.md`](docs/DEPLOY.md) (Docker; Render, Fly.io or your own server).\n\nSaves are written to `./saves/<player>/*.sqlite`. Every month is autosaved, and you can rewind from Settings.\n\n## Other commands\n\n```bash\nnpm test                                   # engine, evals, diplomacy, save/load tests\nnpm run typecheck\nnpm run cli -- sim --months 24 --verbose   # headless AI-only simulation\nnpm run cli -- scenario-check              # validate the Jan 2026 scenario\n```\n\n## Layout\n\n```\npackages/schemas      action ontology + LLM output contracts (Zod)\npackages/engine       deterministic simulation, validators, AI nations, turn pipeline, views\npackages/scenario     scenario loader/validator\npackages/llm          LLM gateway (Anthropic / offline / scripted)\npackages/agents       intent parser, leader dialogue, group meetings, narrator, advisor\npackages/persistence  SQLite saves\napps/server           game server (Fastify)\napps/client           browser UI (React + MapLibre)\napps/cli              headless runner\ndata/scenarios        SCENARIO_2026_01_01 source files (YAML/CSV)\ndata/geo              province geometry (Natural Earth, public domain)\ntools/geo             reproducible map build\ntests                 vitest suites\n```\n\nStarting-world figures are approximate end-2025 estimates and are flagged for fact-checking. The Russia–Ukraine line of contact is approximate.",
  "commits": []
}