Andrej Karpathy has demonstrated how far AI-powered coding tools have advanced after allowing Anthropic’s Claude Code to build an interactive, Civilization-style map of the United States.
The artificial intelligence experiment reportedly took seven hours and generated approximately 45,000 lines of code, combining information from 31 public data sources into one interactive application.
Karpathy shared the project on November 26 through a post on X, explaining that he used Claude Code’s desktop application to develop the experience.
The project transforms real-world American data into a strategy-game-inspired geographical system, allowing users to explore economic activity, population patterns, industries and other regional information.
Claude Code handled several stages of development, including collecting information, reconciling datasets, creating the underlying data model and building the interactive application.
According to the project details, information from sources including the US Census Bureau, Bureau of Economic Analysis, Bureau of Labor Statistics, NOAA and FEMA contributed to the map.
The system organizes geographical information onto a grid made up of hexagonal areas measuring approximately 25 kilometers across.
One particularly interesting feature is how the application translates economic indicators into familiar Civilization-style game mechanics.
For example, regional gross domestic product becomes an in-game gold yield, while local industries influence the types of districts associated with individual cities.
San Jose receives a Campus district reflecting its technology and research ecosystem, while Detroit is represented through its automotive manufacturing identity.
The application also uses real-world information to determine which locations qualify as special in-game Wonders.
National parks are evaluated using visitor numbers, while universities are considered through research and development spending.
Users can explore the information through 19 visualization options, examine 524 metropolitan areas and generate tables or scatter plots using data covering more than 3,100 counties.
However, the experiment also revealed an important limitation. Karpathy acknowledged that Claude had left out several states and territories while building the application.
He did not specify which locations were missing or explain why the AI coding agent excluded them during development.
The omission highlights a broader challenge facing AI-assisted software development: producing large amounts of code does not automatically guarantee complete or accurate results.
For businesses using AI agents to process government datasets, missing geographical information could affect regional comparisons, statistical calculations and other important decisions.
Another concern involves verification. If an AI agent creates both an application and its tests, developers may need independent checks to identify mistakes that the original system overlooks.
Karpathy described the finished project as enjoyable to explore and suggested it could eventually be expanded or developed into a playable game.





