跳到正文
Ado· @adocomplete · X·· 1 小时前精选AI 评分67

Karpathy 用 Claude Code 和 Opus 5.5 把美国真实数据做成文明风格游戏地图

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!

引用Andrej Karpathy@karpathy

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:

在 X 查看被引用的帖子

来源:Ado · x.com

所属事件

查看完整事件
Karpathy 用 Claude Opus 5.5 生成美国真实数据文明地图