NoFOMO
Search 中EN Sign in Sign up

Peaked at #3 Off the board

Karpathy builds civilization map with Claude

Karpathy had Claude Opus 5.5 use 31 US public data sources, 7 hours and 45K lines of code to build a real-data Civilization-style hex map.

Rank over time

Key points

  • Karpathy asked Claude to populate a Civilization-style game map with real US data from 31 public sources, including Census, BEA, BLS, EIA, NOAA, USGS, DoD, NPS, FAA, FEMA and CDC.
  • The project took 7 hours and 45K lines of code, run with Claude Code desktop app using Opus 5.5 on medium with ultracode turned on.
  • Data was reconciled onto one 25 km hex grid and converted into Civilization terms, such as Gold yield for GDP, with 19 lenses, a City View for 524 metros, and nine advisors plus an Explorer covering 3,100+ counties.
  • Claude skipped a few states and territories, and the project is deployed at a linked site with sources available under the "?".

Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI

Original post

Andrej Karpathy @karpathy 4.5M followers

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: https://t.co/QMhmafXMj5 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:
Post image
22.3Klikes 1,840reposts 1,252replies 1.9Mviews

View on X Save

Top replies on X

Reaction on X: Replies are mostly lighthearted and enthusiastic, with users joking about showing the project to their own Claude to motivate or make it jealous. One reply notes the map covers 21 of 199 simulation mechanics catalogued across other sim games and points Karpathy to that list for more ideas.

Sign in to see 5 top replies from X

From @maxchadwick, @yoheinakajima, @thekitze and others. Spam removed, with English and Chinese translations.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link