跳到正文
Peiking Hon· 来源· @PeiqinH62740 · X·· 7 天前同新闻AI 评分78

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

正文

Karpathy 让 Claude 用美国真实数据,填出了一张能打开玩的文明风地图。

大约 7 小时,4.5 万行代码,31 个公开数据源。模型是 Opus 5.5。同一天时间线上更晃眼的,是另一份尚未证实的 3D 演示。

【先看能打开的这一份】

11 月 26 日,Andrej Karpathy 发帖说,他让 Claude 用美国真实数据,填充一套 Civilization 风格的地图。工具是 Claude Code 桌面版,模型是 Opus 5.5,档位 medium,并打开了 ultracode。

大约 7 小时、4.5 万行代码之后,作品可以运行。演示部署在 https://karpathy.ai/usaciv/ ,页面上的问号里有源码链接。他还附了一支模型自己做的 30 秒预告片。

数据来自 31 个公开来源,包括 Census、BEA、BLS、EIA、NOAA、USGS、国防部、国家公园局、FAA、FEMA、CDC。它们被对齐到 25 公里的六边形网格,覆盖地形、土地覆被、GDP、就业、电厂、矿、港口、机场、基地、公园、大学、货运和灾害。

游戏语言是映射出来的。

黄金产量对应 GDP。

城市区域对应真实产业专长:圣何塞是 Campus,底特律是 Motor city。

居民按真实劳动力结构来:圣何塞每 4 名工人里就有 1 名工程师、程序员或科学家,全国则是 1/14。

奇观按公开规则挑选,国家公园看访客量,大学看研发开支。

界面包括 19 种透镜、524 个都会区的 City View、9 位顾问,以及 Explorer。Explorer 可以把 3100 多个县的任一数据列做成表格和散点图,并和地图联动。

这些数字都来自 Karpathy 自己的说明。页面可以打开。我没有逐格核对数据是否对齐。

【真正难的不是堆行数】

4.5 万行、7 小时,已经不再让人吃惊。今天更值得盯住的,是另一件事:31 个机构的公开数据,口径、地理单元和更新时间都不一样,却被收进同一套 25 公里网格,再翻译成一套自洽的游戏语言。

代码行数是最不好用的尺子。对齐和命名,才是这个项目真正的工作量。

把 GDP 叫作黄金,本身就是一种选择,不是数据里长出来的事实。地图看起来像游戏,可 Explorer 把 3100 多个县的任意一列拉成表和散点图——它更接近一套穿着游戏皮肤的数据浏览器。

还有一句被不少转发漏掉的话:Claude 自己决定跳过了部分州和领地。Karpathy 只写了 sry,没有点名缺了哪些。

能运行,和做完了该做的事,不是一回事。

你打开的这张图,已经包含模型替你做的范围决策。它不只是按规格施工,也在半路上决定了施工范围。一天能交差的项目,缺口往往就写在这种随便一笔里。

Karpathy 说,自己也不确定接下来要把它做成什么,也许可以扩展成游戏;但他的每周 Claude 额度只剩一半,得别人来接手。即便是这种看起来一天就能交差的作品,配额仍是硬约束。

【同一天,时间线更爱另一份演示】

就在同一个窗口里,一份据称由 Opus 5.6 生成的 3D 网页演示在中英文圈传开。页面和录屏都在,视觉冲击很强。

但 Anthropic 官方还没有对应公告,模型名称也尚未得到确认。有人已经提醒:路由到的不一定是 5.6,也可能是别的模型。具体的速度数字,目前只能标待核实。

一边是写清了模型、档位、工时、数据范围和缺口、并能直接打开的项目。

一边是效果先行、版本还要留白的作品。

时间线更容易把票投给后者。可要校准「现在的编程模型,一天里能独立做完多大的数据项目」,更可靠的样本,其实是前面那张地图。它没有把完成态擦得太干净。

把未证实的灰度作品写成新模型发布,和把一张能打开的地图写成「AI 已经能自己做游戏」,是同一种着急。

演示:https://karpathy.ai/usaciv/

原帖:https://x.com/karpathy/status/2125779541952246039

#AI #ClaudeCode #Opus55

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

来源:Peiking Hon · x.com