跳到正文
Yolo_AI· 来源· @Yolo_ai_001 · X·· 26 分钟前同新闻AI 评分72

同一新闻,精选展示《Karpathy 用 Claude Code 和 Opus 5.5 基于真实数据构建游戏地图》

正文

太强了👍 Karpathy 让 Claude 把美国变成了可玩的《文明》地图

他让 Opus 5.5 去拉真实公开数据,自己搭一个《文明》风格的六边形地图。

结果 7 小时、约 4.5 万行代码后,真跑起来了。
•整合了 31 个真实数据源(Census、BEA、BLS、EIA、NOAA、USGS、DoD、NPS、FAA、FEMA、CDC 等)
•全部对齐到 25 km 六边形网格:真实海拔、土地覆盖、GDP、就业、电厂、矿场、港口、机场、军事基地、国家公园、大学、货运流量、灾害……
•数据被翻译成《文明》语言:金币产量 = GDP;城市区域对应真实产业(圣何塞是校园区、底特律是“汽车城”);市民比例反映真实劳动力结构(圣何塞约 1/4 是工程师/程序员/科学家,全国平均只有 1/14)
•奇观按公开规则生成(国家公园看游客量、大学看研发投入等)
•还带了 19 种视角透镜、524 个都市的城市视图、9 个顾问 + 一个 Explorer 工具(能把 3100+ 县的任意字段转成表格和散点图,并直接连到地图上)

用 Claude Code 桌面端 + Opus 5.5(medium + ultracode)做的。Claude 自己还做了个预告片。

Karpathy 说自己也不确定最后要做成什么,但浏览起来很有趣,甚至可能继续扩成真正的游戏。

这大概是目前最直观的“AI Agent 端到端做复杂数据产品”的例子之一:从找数据、清洗、对齐、建模到可视化,几乎全自动。

引用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: https://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 查看被引用的帖子

来源:Yolo_AI · x.com