Skip to content
nervounaPublic

About

A browser 4X strategy game on the real terrain of East Asia, designed and written by Claude. Everything visual is generated by code.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Shanhe 山河

English | 简体中文

CI License: MIT Browser: WebGPU

A turn-based 4X strategy game for the browser, played on the real terrain of East Asia, Siberia and Southeast Asia. Fifty fictional nations follow real province-level borders and take their flavour from the real places. Units are xiangqi-style pieces on a sand-table map.

Status

  • Maturity: early and under construction. A whole 150-turn game can be played against the AI on the real map, with a first pass of the rules (cities, combat, war and peace, the tech tree, three victories) and of the visuals. Policies, diplomacy, trade and the 50 nations' own traits are not in yet. Development is tracked in the issues.
  • Who it is for: people curious about what a language model can build on its own. The whole game, from design to code, is written by Claude (Anthropic's Fable model) with a human owner who makes product decisions.
  • What it takes to run: a desktop browser with WebGPU; WebGL is the fallback. There is no hosted build yet: clone the repository, then npm ci and npm run dev (Node 24 or later).
  • Languages: Chinese and English UI.
  • Releases: none yet.

See CONTRIBUTING.md and SECURITY.md.

What makes it different

  • Everything visual is generated by code. No model files and no texture files. Terrain comes from public elevation and border datasets; materials come from shaders.
  • Provinces stay meaningful. Borders are fixed at the start. A nation develops freely inside its province and grows beyond it only through war or diplomacy.
  • A full game in about two hours: 150 turns across six eras, from ancient to modern.
  • Three ways to win: conquest, science, economy.

How it is built

The design lives in docs/design and is the source of truth for the game. Work is planned as GitHub issues and delivered as pull requests by Claude subagents; an orchestrating Claude session writes the specs, reviews and merges. CLAUDE.md holds the project rules those agents follow.

Design documents

Doc Content
Overview Purpose, pillars, scope
World and map Map extent, territory rules, city-states
Nations The 50 nations: kits and leaders
Gameplay Cities, combat, diplomacy, victory
Tech and policies Tech tree, units, policies
UI and controls HUD, camera, input
Visuals Data sources and rendering

License

MIT.

The map in public/data/ is derived from public geographic datasets, which keep their own licences. They are described in tools/pipeline/DATA.md:

About

A browser 4X strategy game on the real terrain of East Asia, designed and written by Claude. Everything visual is generated by code.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages