跳到正文

Andrej Karpathy 基于美国数据构建《文明》风格地图

Andrej Karpathy · X@karpathy· 4 天前精选

4.5万 次浏览 · 1047 赞 · 86 转发 (收录时)

原文

发生了什么

Andrej Karpathy 使用搭载 Opus 5.5(medium 和 ultracode 模式)的 Claude Code 桌面版,构建了一张填充美国公开数据的《文明》风格地图。该项目在 25 公里六边形网格上整合了 31 个数据源,提供 19 个视角、覆盖 524 个都市区的城市视图(City View),以及可将超过 3,100 个县的数据列转化为表格和散点图的浏览器(Explorer)。Karpathy 表示 Claude 跳过了一些州和领地。karpathy.ai/usaciv/

推荐理由

单一六边形网格将来自 31 个数据源的公开数据汇集到一张可浏览的地图中,让用户能够通过《文明》风格的界面对比各县指标和都市区层面的产业概况。

正文 · 中文版本尚未就绪(原文)

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:

这件事到目前为止

Andrej Karpathy built and deployed a Civilization-style interactive map populated with U.S. public data at https://karpathy.ai/usaciv/ using Claude Code desktop with Opus 5.5 on medium and ultracode. Karpathy said Opus 5.5 downloaded and parsed the public data, producing 45K lines of code in 7 hours. The map combines 31 data sources on a 25 km hex grid and includes 19 lenses, a City View covering 524 metros, and an Explorer that turns data columns for more than 3,100 counties into tables and scatter plots. Karpathy noted that Claude skipped a few states and territories, and that the site's "?" button provides the source link.

接下来读什么

查看这件事的完整进展Andrej Karpathy Builds a Civilization-Style US Data Map with Claude
这条收录于 11月27日 AI 日报看这一期日报的全部内容