同一新闻,精选展示《Karpathy 用 Claude Code 和 Opus 5.5 基于真实数据构建游戏地图》
Andrej Karpathy asked Claude to turn the United States into Civilization. 7 hours and 45,000 lines of code later, it actually works. 🌎
Not with fictional civilizations or randomly generated resources, but with real geographic, economic, and demographic data.
Using Claude Code Desktop and Opus 5.5, @karpathy created USA Civ, an interactive Civilization-style atlas of the United States.
And the most impressive part isn't the map itself. It's how much data Claude had to collect, process, and connect to build it.
🗺️ 31 public data sources. One giant hexagonal map.
Claude gathered information from organizations including the Census Bureau, BEA, BLS, EIA, NOAA, NASA, USGS, CDC, and other agencies.
Everything was integrated into a unified grid of 25 km hexagonal tiles.
Each area reflects real-world information:
▪️ Geography: Elevation, terrain, land cover, forests, and natural resources.
▪️ Economy: GDP, employment, industries, income, and workforce distribution.
▪️ Infrastructure: Power plants, mines, ports, airports, military bases, universities, and transportation networks.
▪️ Environment: National parks, natural hazards, and disaster data.
🏙️ The clever part: real data becomes Civilization mechanics.
Instead of inventing a game's economy, Claude translated real statistics into familiar strategy-game concepts.
▪️ Gold yield = GDP. Economic output becomes a resource displayed on the map.
▪️ City districts = real industries. San Jose gets a Campus district because of its technology sector. Detroit becomes Motor City.
▪️ Citizens = actual workforce. According to the project's data, approximately 1 in 4 San Jose workers are employed in engineering, software, or science, compared with roughly 1 in 14 nationally.
▪️ Wonders = real landmarks. National parks are selected using visitor statistics, while universities are ranked by research spending.
The result feels like looking at a Civilization save file, except the numbers come from public datasets.
📊 There's an entire analytics platform underneath.
The project includes:
▪️ 19 thematic map layers, covering income, education, disasters, demographics, and other indicators.
▪️ 524 metropolitan profiles, with economic specializations and workforce statistics.
▪️ 9 advisors, presenting different aspects of the country's economy and infrastructure.
▪️ An interactive Explorer covering more than 3,100 US counties, where you can select variables, create tables, generate scatter plots, and connect the results directly to the map.
All of this runs inside a browser.
🤖 How much did Claude actually do?
According to Karpathy:
▪️ Development took approximately 7 hours.
▪️ Claude generated around 45,000 lines of code.
▪️ The project used Claude Opus 5.5, running at medium reasoning effort with ultracode enabled.
▪️ Claude also created a promotional video trailer.
Karpathy even released the source code through the project's help menu.
There are limitations. Claude skipped some states and territories, and USA Civ is currently an interactive atlas rather than a fully playable turn-based strategy game.
But that's not really the point.
One AI coding session turned dozens of disconnected public datasets into a coherent, interactive geospatial application.
Not just a website. Not just a visualization.
A complete data-processing pipeline wrapped in a surprisingly entertaining interface.
Imagine applying the same approach to other countries, historical periods, or even simulation games built on real economic data.
Explore USA Civ:
https://karpathy.ai/usaciv/
Source code:
https://karpathy.ai/usaciv/usaciv-source.zip
#ClaudeCode #AI #DataVisualization #GameDev
来源:CuteGuy☣️ · x.com