Map Explainer
karpathy usaciv: Andrej Karpathy's U.S. Strategy Map
karpathy usaciv is Andrej Karpathy's free browser map of the United States drawn as a strategy game, with hex terrain, city yields, lenses and resources. It is an interactive data map built from public data, not a turn-based game with a known rule set.
What karpathy usaciv Is
Karpathy published the browser map and described it in a post dated 26 November 2026. The project treats the real United States as a strategy-game surface: the terrain, cities and yields are readings of the country rather than invented places. The draw is the country itself, not a separate fictional world. That frame is why the public-data list matters as much as the strategy-game look. The public-data list is therefore part of the map's identity, not a footnote.
Who Built karpathy usaciv and How
Andrej Karpathy made the map and gave the build figures in a public post; the project note keeps the author credit short.
Karpathy says the build took about seven hours and produced about 45,000 lines of code.
Karpathy says usaciv was made with the Claude Code desktop app using Opus 5.5 on medium with ultracode on.
Karpathy wrote that he had only half of his Claude quota left after the build, so the cost was real usage rather than a short test run. One forum commenter wrote that they were not sure how anyone could burn half a Pro Max subscription on this if the build was done right.
Karpathy describes the result as live, and the figures are his own account of effort and model setup.
The 31 Data Sources Behind karpathy usaciv
Karpathy's post lists 31 data sources. The table collects the federal agencies he names inside that set, so the public-data base has concrete institutional names.
| Source named by Karpathy | Type |
|---|---|
| Census Bureau | Federal agency |
| BEA | Federal agency |
| BLS | Federal agency |
| EIA | Federal agency |
| NOAA | Federal agency |
| USGS | Federal agency |
The agency layer sits inside the wider public-source set, not apart from it.
How Real Data Becomes Civ Yields
| Real-world input | Map result |
|---|---|
| GDP | Gold yield |
| City districts | Real industry mix |
| Public datasets | One hex grid with 25 km cells |
The conversion ties the map's economy to real output, and the shared grid keeps every local reading on the same scale.
Lenses, City View and Advisors
| Feature | Role | How to reach it | Key figure |
|---|---|---|---|
| Lenses | Data overlays | Built into the browser map | 19 |
| City View | Metro view | Built into the build | 524 metros |
| Advisors | In-map guidance | Built into the build | nine |
The three features are part of the shipped build, so the same map carries overlay, metro and guidance layers.
How Press and Forums Responded
| Coverage | What it stresses |
|---|---|
| Forum thread | "The USA as a Civilizations-esque map" |
| Article | Opus 5.5 built it in an hours-long autonomous session |
The common questions cover access details, while the public framing centers on the Civilization comparison and the autonomous build. The thread and the article both treat the map as a visual and technical object.
Source Code and License
The help page offers the full source code as usaciv-source.zip under the MIT license. The archive is the full build behind the map.
Frequently asked questions
Can you open karpathy usaciv on a phone?
It runs in the browser with no sign-in, and the help lists touch controls for pinch-to-zoom and drag-to-pan. The help names both gestures, so the touch layer is documented.
Does the map cover every state and territory?
Karpathy says Claude decided to skip a few states and territories, so the map does not cover the whole country. The coverage gap is part of the build he describes.
How detailed is the workforce data?
County workforces appear as real figures: 1 in 4 San Jose workers are engineers, coders or scientists against 1 in 14 nationally. The comparison gives the map a local workforce reading, not just a national average.
Do city districts reflect real industries?
San Jose gets a Campus district and Detroit is “Motor city,” matching the local industry specializations. The district names are therefore tied to real industry mixes.
What odd map detail did a forum comment note?
The comment noted that the Statue of Liberty, NYU and JFK Airport all sit in one hex west of New York. It is a scale quirk that the hex grid of karpathy usaciv makes visible.