Karpathy 用 Claude Code 和 Opus 5.5 把美國真實資料做成文明風格地圖
Karpathy 用 Claude Code 和 Opus 5.5 把美國真實資料做成文明風格遊戲地圖
美國各地的地形、產業和工作資料分散在不同來源,要放進同一張地圖並不容易。
- Karpathy 用 Claude Code 桌面版和 Opus 5.5,把 31 個公開資料來源整理到 25 km 六角網格,再轉成文明風格的地圖元素,例如用 GDP 表示金產量,也讓城市特色反映當地產業。
- 地圖有 19 種檢視方式、524 個都會區的城市檢視,還能檢視 3,100 多個郡的資料。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
這張地圖把 GDP、工作與地形等真實資料轉成遊戲地圖元素,能看出大型程式專案如何把不同來源的資料放在一起呈現。
Ado· @adocomplete · X·2026-11-27 00:44· 30 分鐘前精選AI 評分67
AI 導讀
Karpathy 分享用 Claude Code 桌面版加 Opus 5.5(開啟 ultracode)構建的美國文明風格遊戲地圖,7 小時生成 45K 行程式碼,整合 Census、BEA、BLS、EIA、NOAA 等 31 個真實資料來源,統一到 25 km 六邊形網格。GDP 對映為金產量、城市按真實產業分化,含 19 個檢視、524 個都市的 City View 和覆蓋 3,100+ 縣的 Explorer,已部署在 karpathy.ai/usaciv/。作者 Ado 轉發並感嘆。
推薦理由
Karpathy 用 Claude Code 和 Opus 5.5 耗時 7 小時寫出 45K 行程式碼,把美國真實資料做成了文明風格遊戲地圖,展示了 Agent 長程編碼的實際產出。
正文 · 原文
Wow!
在 X 檢視被引用的帖子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: karpathy.ai/usaciv/ 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:
來源:Ado · x.com