我让 Claude 用美国的真实数据填充一张《文明》风格的游戏地图。Opus 5.5 下载并解析了大量公开数据,7 小时、4.5 万行代码之后……它成功了 :)
- 31 个真实数据源,包括人口普查局(Census)、经济分析局(BEA)、劳工统计局(BLS)、能源信息署(EIA)、海洋大气局(NOAA)、地质调查局(USGS)、国防部(DoD)、国家公园管理局(NPS)、联邦航空局(FAA)、联邦应急管理署(FEMA)、疾控中心(CDC)……
- 真实的海拔、土地覆盖、GDP、就业、发电厂、矿山、港口、机场、军事基地、公园、大学、货运流量、灾害,全部整合到一张 25 公里六边形网格上。
- 数据被转换为《文明》语言,例如金币产出就是 GDP。城市的区域就是它真实的产业专长:圣何塞获得一座学院,底特律是“汽车之城”。市民就是真实的劳动力:圣何塞四分之一的劳动者是工程师、程序员或科学家,而全国平均水平是十四分之一。奇观按公开规则选取,比如国家公园按游客数量、大学按研发支出,等等。
- 19 个视图模式(收入、学位、信仰、灾害……)、覆盖 524 个都会区的城市视图,外加九位顾问和一位 Explorer。Explorer 能把 3100 多个县中任意一列数据变成表格和散点图,并与地图联动。
- Claude 决定跳过几个州和属地,抱歉啦
- 使用 Claude Code 桌面版构建,Opus 5.5 中等强度并开启 ultracode。
部署在这里:https://t.co/QMhmafXMj5,"?" 里也有数据源链接。我不太清楚自己想把它做成什么,但浏览和把玩起来真的很有趣。或许可以扩展或做成一款游戏。不过我这周的 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://t.co/QMhmafXMj5 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:
内容摘要
Andrej Karpathy 让 Claude Opus 5.5 下载并解析美国公开数据,历时 7 小时生成 45K 行代码,构建出 Civilization 风格游戏地图并已部署在线上。