Karpathy用Claude Opus 5.5生成美国数据文明地图
I asked Claude to populate a Civilization-style game map with real data from the…
展示Agent自主完成多源数据清洗、对齐到复杂业务逻辑并生成前端应用的完整工作流,参数与架构细节清晰,极具复用参考价值。
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 :)
我让 Claude 用来自美国的真实数据填充一个《文明》风格的游戏地图。Opus 5.5 下载并解析了大量公开数据,经过 7 小时和 4.5 万行代码后……它成功了 :)
- 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.
- 31 个真实数据来源,包括人口普查局(Census)、经济分析局(BEA)、劳工统计局(BLS)、能源信息署(EIA)、国家海洋和大气管理局(NOAA)、美国地质调查局(USGS)、国防部(DoD)、国家公园管理局(NPS)、联邦航空管理局(FAA)、联邦紧急事务管理署(FEMA)、疾病控制与预防中心(CDC)等。 - 真实的海拔、土地覆盖、GDP、就业、发电厂、矿山、港口、机场、军事基地、公园、大学、货运流量、灾害;所有数据均整合到一个 25 公里的六边形网格上。 - 数据被转换为《文明》游戏的语言,例如:黄金产量对应 GDP。城市的区域对应其真实的产业专业化:圣何塞获得一个学院区,底特律是“汽车城”。其公民对应其真实劳动力:圣何塞有四分之一的工人是工程师、程序员或科学家,而全国平均水平仅为十四分之一。奇观根据既定规则选择,例如国家公园按游客数量确定,大学按研发支出确定,等等。 - 19 种视角(收入、学位、信仰、灾害等),为 524 个大都市提供城市视图,以及九位顾问加一名探险家。探险家可将 3,100 多个县中任意列的数据转换为表格和散点图,并与地图联动。 - Claude 决定跳过几个州和领地,抱歉 - 使用 Claude Code 桌面应用构建,基于 Opus 5.5 模型,中等设置,并开启 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:
它已部署在此处:https://karpathy.ai/usaciv/,“?”按钮也包含源代码链接。我不太清楚自己最初想用它做什么,但浏览和试玩非常有趣。也许它可以扩展或开发成一款游戏。不过我每周的 Claude 调用额度只剩一半了,所以得由其他人接手了 :D。Claude 还制作了一个预告片:
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力