I came across this post by Andrej Karpathy and it’s a fascinating demonstration of what happens when you combine AI coding agents with a genuinely ambitious idea.
Karpathy asked Claude to populate a Civilization-style game map with real-world data from the United States.
What followed is remarkable: 7 hours, 45,000 lines of code, and 31 public data sources.
Using Opus 5.5 through Claude Code, the system downloaded, parsed, and reconciled data from sources including the US Census Bureau, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, and CDC.
The result is essentially a playable, data-rich representation of the United States, with information mapped onto a common 25-kilometer hexagonal grid.
But what makes this particularly interesting is how the AI translated real-world data into the language of Civilization:
- Gold yield represents GDP. — Cities develop districts based on their actual industrial specializations. San Jose gets a Campus; Detroit becomes Motor City. — Citizens represent the real workforce. For example, one in four San Jose workers is an engineer, coder, or scientist, compared with one in fourteen nationally. — Natural resources, power plants, mines, ports, airports, military bases, national parks, universities, and freight flows all become part of the game world. — Even the Wonders are selected according to published criteria, such as visitor numbers for national parks and research spending for universities.
There are 19 different data lenses, a City View covering 524 metropolitan areas, nine advisors and an Explorer that can turn any available data column across more than 3,100 counties into tables and scatter plots linked directly to the map.
Think about that for a moment.
This isn’t simply AI generating a game. It’s AI assembling a complex data-engineering pipeline, integrating dozens of disparate public datasets, resolving different geographic representations, creating a unified data model, and building an interactive application on top of it.
Andrej’s experiment is another compelling illustration of how AI coding agents are changing the economics of software development.
A project that would traditionally require a multidisciplinary team involving data engineers, GIS specialists, software developers, and visualization designers can now be approached by a single person working with an AI agent.
Of course, the real test is still data quality, validation, and how well the system handles inconsistencies and omissions. But as a demonstration of what’s becoming possible, this is impressive.
One small disclaimer from Claude: a few states and territories were apparently left out. 🙂
Built with Claude Code desktop, Opus 5.5 on Medium, with Ultracode enabled.
Source: Andrej Karpathy on X.
#ArtificialIntelligence #AIAgents #softwareengineering #geospatialdata
The real U.S. economy drawn like a 4X strategy map: hex terrain, cities with yields, lenses and resources, all from public data (Census ACS, BEA, NOAA, USGS, EIA).
