
Andrej Karpathy Uses Claude AI To Build Civilization Style American Map
Tech guru Andrej Karpathy recently sparked a massive online trend by sharing a fun personal project that transforms realworld public data of the United States into an interactive map styled after the classic strategy game Civilization. Utilizing the Claude Code desktop app with Opus 5.5 on medium and ultracode enabled, Karpathy allowed the AI to run continuously for roughly seven hours. The process consumed half of his weekly usage quota and generated an impressive 45,000 lines of code, even producing a custom trailer as an unexpected side output.
The resulting interactive web map features hexagonal tiles meticulously laid out with mountains, forests, farmlands, and cities occupying designated spaces that users can pan and zoom across freely. To achieve this, the project draws upon 31 distinct public data sources, including information from the Census Bureau, Bureau of Economic Analysis, Bureau of Labor Statistics, National Oceanic and Atmospheric Administration, and the Federal Emergency Management Agency. Realworld metrics like elevation, land cover, jobs, power plants, mines, freight flows, and natural disasters were all successfully reconciled onto a unified 25kilometer hex grid.
Within this simulated environment, realworld gross domestic product is ingeniously converted into ingame gold yield, while individual city districts reflect authentic regional industrial specializations. For instance, San Jose receives a specialized campus district, and Detroit is appropriately designated as a motor city. Furthermore, national landmarks and wonders are selected through published rules, with national parks determined by visitor numbers and universities chosen based on research and development spending. The interface also incorporates nineteen distinct browsing lenses covering topics such as income, religious faith, and disasters, alongside detailed city views for 524 metropolitan areas.
Despite the remarkable technical achievement of compiling vast quantities of government data into a functional gamelike format, Karpathy noted that the AI occasionally skipped a few states and territories during the generation process. Whether the project will ever evolve into a fully playable traditional game remains uncertain, as Karpathy described an actual game as a maybe. Even so, the experiment brilliantly showcases how modern artificial intelligence tools can process complex multilayered datasets and build sophisticated web applications from scratch with minimal human intervention.
The reception among online communities quickly escalated far beyond a simple showcase of a tech guru's weekend hobby. Netizens across the globe seized upon the concept, transforming it into a viral international relay game where users from various countries queue up to replicate the concept for their own homelands. Versions for Australia, Spain, the Philippines, and the United Kingdom have already emerged as global participants race to build their own national maps. Observers have pointed out that this widespread phenomenon serves as a striking proof of concept for how AI has made complex technical execution virtually free for creators willing to experiment.