同一新闻,精选展示《Karpathy 用 Claude Code 和 Opus 5.5 基于真实数据构建游戏地图》
他将真实的美国公共数据转化成了《文明》风格的游戏,将GDP、就业到城市、工业和基础设施等一切内容进行了映射。全部使用 Claude Code 在短短7小时内完成构建。这是AI令人印象深刻的用法。
我让 Claude 用来自美国的真实数据填充一个类似《文明》的游戏地图。Opus 5.5 下载并解析了大量公开数据,经过 7 小时和 4.5 万行代码后……它成功了 :) - 31 个真实数据来源,包括人口普查局、经济分析局、劳工统计局、能源信息署、国家海洋和大气管理局、地质调查局、国防部、国家公园管理局、联邦航空管理局、联邦紧急事务管理署、疾病控制与预防中心... - 真实的海拔、土地覆盖、GDP、就业、发电厂、矿山、港口、机场、军事基地、公园、大学、货运流量、灾害;所有数据都整合到一个 25 公里的六边形网格上。 - 数据被转换为《文明》语言,例如黄金产量对应 GDP。城市的区域代表其真实的产业专业化:圣何塞获得一个“校区”,底特律是“汽车城”。其公民代表其真实的劳动力:圣何塞有四分之一的工人是工程师、程序员或科学家,而全国平均水平为十四分之一。奇观的选择依据已发布的规则,例如根据游客数量选择国家公园,根据研发支出选择大学等。 - 19 种视角(收入、学位、信仰、灾害……),524 个大都市的城市视图,以及九位顾问加一名探险家。探险家可以将 3,100 多个县中任意一列的数据转换为表格和散点图,并与地图链接。 - Claude 决定跳过几个州和领地,抱歉 - 使用 Claude Code 桌面应用构建,在 Opus 5.5 中等模式下运行,并开启了 ultracode。 它部署在这里:https://karpathy.ai/usaciv/,“?”处也有源代码链接。我不太清楚我最初是想做什么,但浏览和玩弄它真的很有趣。也许它可以扩展或开发成一款游戏。不过我这周剩下的 Claude 额度只有一半了,所以得由其他人接手了 :D。Claude 还制作了一个预告片:
原文
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:
来源:Gourav · x.com