Claude Builds a Civilization-Style Map of America from 31 Real Data Sources

Claude Opus 5.5 spent 7 hours parsing 31 US public data sources and generated 45,000 lines of code to bring real data into a Civilization-style map.
A developer had Claude Opus 5.5 turn real US public data into a Civilization-style game map. The project integrates 31 data sources including the Census, BEA, BLS, EIA, NOAA, and USGS, covering terrain, GDP, employment, power plants, and military bases, all aligned to a 25 km hexagonal grid. The data is semantically mapped to game mechanics: GDP to gold, industrial specialization to districts, labor structure to citizens, and wonders selected by public rules. It also offers 19 data views, a city view for 524 metropolitan areas, and a linked Explorer tool, making it more like a gamified spatial data browser. The 7-hour, 45,000-line effort shows AI coding tools handling long-cycle, multi-module, cross-source engineering tasks.
A developer had Claude bring real US data into a Civilization-style game map. The result: Opus 5.5 parsed massive amounts of public data, spent 7 hours, wrote 45,000 lines of code, and got it running. The project is deployed and playable online, and the author says, "I don't know where it was originally headed, but it's fun to play."
What's interesting here isn't "AI writes code" — it's that AI completed a full engineering loop from data collection and cleaning to geographic grid alignment and game-semantic mapping.



31 Real Data Sources, All Aligned to a 25 km Hexagonal Grid
The project integrates 31 real data sources, covering agencies such as the US Census Bureau, the Bureau of Economic Analysis (BEA), the Bureau of Labor Statistics (BLS), the Energy Information Administration (EIA), the National Oceanic and Atmospheric Administration (NOAA), the US Geological Survey (USGS), the Department of Defense (DoD), the National Park Service (NPS), the Federal Aviation Administration (FAA), the Federal Emergency Management Agency (FEMA), and the Centers for Disease Control and Prevention (CDC).
Data dimensions include terrain elevation, land cover, GDP, employment, power plants, mines, ports, airports, military bases, parks, universities, freight flows, and disaster records. All data is reconciled onto the same 25 km hexagonal grid — the signature map structure of the Civilization series.
The technical challenge here is the mismatch in spatial data scales: county-level economic data, point-based facility data, and rasterized remote-sensing data must all be aggregated and interpolated within a unified grid without destroying spatial autocorrelation. Claude automatically handled these processes, which normally require manual work by GIS engineers.
Hexagonal grid is the map cell structure adopted by the Civilization series since the fifth installment. Compared with a square grid, each hexagonal cell has six neighbors at equal center-to-center distances, avoiding the problem in square grids where "diagonal movement distances are inconsistent," making distance, diffusion, and adjacency relationships more uniform. At the 25 km scale, this covers a portion of the roughly 8 million cells in the contiguous United States, which are aggregated into a playable, finite map.
Spatial autocorrelation refers to the tendency of geographically nearby things to be similar in attributes (e.g., adjacent counties have similar income levels). When aggregating county-level, point-based, and raster data onto a unified grid, simple averaging or nearest-neighbor methods may flatten existing spatial clustering patterns, so interpolation methods such as area weighting and kernel density estimation are needed to preserve this property.
Translating Data into Civilization's Language
What really made the project stand out is the semantic mapping from data to game mechanics:
- Gold output = GDP. A region's total economic output directly determines in-game gold income.
- Districts = real industrial specializations. San Jose gets a "Campus" district, and Detroit is labeled "Motor City."
- Citizens = real labor force structure. One in four workers in San Jose is an engineer, programmer, or scientist, compared with a national average of 1 in 14.
- Wonders = selected by publicly disclosed rules. National parks are selected by visitor numbers, and universities are ranked by R&D spending.
The value of this mapping is that every game value has a traceable real-world source. The "strong cities" players see in the game are direct projections of real-world industrial clustering.
The core mechanic of the Civilization series is the yield system: each tile and district produces resources such as food, production, gold, science, and culture, driving population growth, construction, and technological research. Districts are specialized areas introduced in the sixth installment, with different districts providing different bonuses — for example, campuses boost science output and industrial zones boost production.
Mapping real data onto these mechanics is essentially semantic mapping: finding an interpretable real-world counterpart for every game value. This requires designers to understand both game balance (values cannot be so disparate that playability is ruined) and data distributions (the power-law distribution of GDP requires logarithmic scaling); otherwise, the gap between San Jose and a small town would make the game unbalanced.
19 Views and City Perspectives for 524 Metropolitan Areas
In addition to the core map, the project provides 19 data views (income, education, religious belief, disasters, etc.), a city view covering 524 metropolitan areas, and 9 advisors plus 1 "Explorer" character.
The Explorer can turn any column of data from more than 3,100 counties into tables and scatter plots, linked to the map. This means it is not just a game but closer to a spatial data browser — using a gamified interface to lower the barrier to understanding public data.
The author notes that Claude skipped a few states and overseas territories, which is a minor regret.
Metropolitan Statistical Area (MSA) is a standard statistical unit defined by the US Office of Management and Budget, usually centered on one or more counties around a densely populated urban core and with strong economic and social ties to surrounding counties. There are about 380+ MSAs in the United States, and the number is larger when micropolitan areas are included; the project's figure of 524 metropolitan areas may use a broader definition.
MSAs are the standard geographic unit for employment, GDP, and population data published by agencies such as the Census, BEA, and BLS. Organizing the city view around metropolitan areas therefore ensures consistency across data sources and makes it easier to connect with other public statistics.
Engineering Signals from the AI Toolchain
The project used the Claude Code desktop app, with the model set to Opus 5.5, reasoning effort set to medium, and ultracode mode enabled. The output scale of 7 hours and 45,000 lines of code shows that today's AI coding tools can already handle long-cycle, multi-module, cross-data-source complex engineering tasks.
The author jokes that only half of his weekly Claude quota remains and that further expansion will have to be taken up by someone else. This indirectly reflects the real compute quota consumption of this kind of high-intensity AI-assisted development.
The project's imaginative potential lies in the fact that it can continue to expand into a full strategy game, or serve as a visualization teaching tool for urban planning and economic geography. Packaging public data in game mechanics may be a new direction for data storytelling.
Claude Code is a command-line/desktop coding agent tool launched by Anthropic. It can read codebases, execute commands, run tests, and iteratively modify code, rather than merely completing single lines of code. Reasoning effort refers to the token budget the model uses for internal thinking before generation; setting it to medium is a compromise between quality and cost. Ultracode mode usually refers to a more aggressive autonomous execution strategy that allows the model to make multiple consecutive rounds of tool calls with less human confirmation.
The key metric for this kind of "agentic programming" is not the number of lines of code generated but the task completion rate — whether it can complete the entire process from parsing data to getting the program running without human intervention. The scale of 7 hours and 45,000 lines reflects long-context management and the ability to maintain state across multiple modules, rather than mere code generation speed.
One-line Summary
Claude Opus 5.5 spent 7 hours parsing 31 US public data sources and generated 45,000 lines of code to bring real data into a Civilization-style map.
Paragraph Summary
A developer had Claude Opus 5.5 turn real US public data into a Civilization-style game map. The project integrates 31 data sources including the Census, BEA, BLS, EIA, NOAA, and USGS, covering dimensions such as terrain, GDP, employment, power plants, and military bases, all aligned to a 25 km hexagonal grid. The data is semantically mapped to game mechanics: GDP corresponds to gold, industrial specialization to districts, labor force structure to citizens, and wonders are selected by public rules. The project also provides 19 data views, a city view for 524 metropolitan areas, and a linked Explorer tool, making it more like a gamified spatial data browser. The entire process took 7 hours and produced 45,000 lines of code, demonstrating the ability of AI coding tools to handle long-cycle, multi-module, cross-data-source complex engineering tasks.
Related articles

Anthropic Denies Claude Was Trained to Sabotage Work: The Controversy Exposes an AI Trust Crisis
Anthropic denies claims that Claude was trained to sabotage work but gives no specifics. This article examines the AI trust issue and the need for vendor transparency.

Gmail 'Send as' to Be Discontinued in 2027: Email Workflows Face Restructuring
Gmail's 'Send as' feature will be discontinued in January 2027, sparking Hacker News discussion. This article explains the feature's role, three affected user scenarios, and a practical preparation checklist for migrating custom sending addresses and reconfiguring domain authentication.

Character.ai Bankruptcy Auction: 21 Million Users' Private Conversations Up for Auction
Character.ai bankruptcy proceedings are auctioning 21 million users' private conversation records, triggering widespread concerns in the Hacker News community about data governance and user privacy in AI companionship products. This article analyzes the legal gray zone of data assets in bankruptcy liquidation, flaws in user agreements, and the AI industry's trust crisis.