Skip navigation
I asked Claude to populate a Civilization-style game map with real data from the US.
0:00 / 0:30

I asked Claude to populate a Civilization-style game map with real data from the US.

Andrej Karpathy

@karpathy4.5M followers

Visit on X
25,601 likesDownloadOriginal post

2,363,882 views

I asked Claude to populate a Civilization-style game map with real data from the US. Opus 5.5 downloaded and parse a ton of public data and 7 hours and 45K lines of code later... it works :) - 31 real data sources including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA, CDC... - Real elevation, land cover, GDP, jobs, power plants, mines, ports, airports, bases, parks, universities, freight flows, disasters; all reconciled onto one 25 km hex grid. - The data is converted into Civilization language, e.g. Gold yield is GDP. A city's districts are its real industry specializations: San Jose gets a Campus, Detroit is "Motor city". Its citizens are its real workforce: 1 in 4 San Jose workers are engineers, coders or scientists, against 1 in 14 nationally. Wonders are chosen by published rules, such as national parks by visitor numbers and universities by R&D spending, etc etc. - 19 lenses (income, degrees, faith, disasters…), a City View for 524 metros, and nine advisors plus an Explorer. The Explorer turns any column for any of 3,100+ counties into a table and scatter plot, linked to the map. - Claude decided to skip a few states and territories sry - Built using Claude Code desktop app, Opus 5.5 on medium and turning on ultracode. It's deployed here: and the "?" has the source link too. I don't exactly know where I was going with this but it's really fun to browse and play with. Possibly it can be expanded or built into a game. I only have half of my weekly Claude quote left though so someone else will have to take over :D. Claude also made a trailer:

30 Comments

Comments from the original post on X (Twitter)

  • Max Chadwick's profile picture

    @maxchadwick

    I need to show this to my Claude to motivate it to get better

    25 likes

  • Kitze's profile picture

    @thekitze

    I highly believe that we're someone's pet project like this in the simulation

    24 likes

  • Jimmy Apples 🍎/acc's profile picture

    @apples_jimmy

    We really need to improve original audio creation for new models

    13 likes

  • angel's profile picture

    @angel_flowstate

    don’t let my claude see this, I fear he will get jealous of what kinda work other people’s claude working on

    8 likes

  • Aiden Bai's profile picture

    @aidenybai

    does this support policy as well? would be cool to have gov/lobbying/etc

    5 likes

  • Itamar Friedman's profile picture

    @itamar_mar

    @karpathy doesn’t your work deserve higher quotas?

    4 likes

  • Andrej Karpathy's profile picture

    @karpathy

    My work yes but this is a rando side project so it’s just my regular sub

    24 likes

  • Itamar Friedman's profile picture

    @itamar_mar

    Makes sense. I had a (wrong) feeling this might be related to your education related work

  • Liz Zhang's profile picture

    @helloLizZhang

    "claude decided to skip a few states" is the most realistic part. even the AI said not today wyoming

    4 likes

  • nsxdavid's profile picture

    @nsxdavid

    Cool. But why does it think St. Louis is in Illinois?

    4 likes

  • Neo's profile picture

    @NeoAIForecast

    Imagine having unlimited opus 5.5!!

    4 likes

  • Girtonian's profile picture

    @girtonian

    You should add food deserts, crime rates, etc. talk about a major anthropological goldmine!! Open source it!!

    3 likes

  • Yohei's profile picture

    @yoheinakajima

    awesome! you seem to have 21 of the 199 sim mechanics we found across other sim games at if you want to point your agent at it for more ideas :)

    3 likes

  • Alex Volkov's profile picture

    @altryne

    > I only have half of my weekly Claude quote Senpai don't you get like.. unlimited super claude inside there?

    3 likes

  • Jesus is God ✝︎'s profile picture

    @JesusIsGod

    We are ready for you to graduate to OpenAI Karpathy

    2 likes

  • Matt Van Horn's profile picture

    @mvanhorn

    Whoa

    2 likes

  • sniderstyle's profile picture

    @sniderstyle

    This is the most fun way I've seen public data visualized. Now do the same for the 1800s and let us watch the frontier expand in real time.

    2 likes

  • Mild Mannered Maniac's profile picture

    @80sGeek

    I legitimately tried to download all the data on the internet that was like this including ours. It was a huge project. Yeah don't ever do that, lol

    2 likes

  • Dan McAteer's profile picture

    @daniel_mac8

    Think I saw my house in there

    1 like

  • Axel Garcia K. 🇬🇧 Dev's profile picture

    @AxelGarciaK

    Man, having unlimited Opus tokens must be nice

    1 like