跳到正文
Simon Willison·· 2026-10-24精选

Simon Willison分享四人联机改造提示词,明确地图与网络约束

AI 导读

Simon Willison公开把Battledrones从双人扩展为四人联机的提示词,明确四向旋转对称、兼容既有WebSocket模式,以及空位由AI补齐。作者展示了新增地图、邀请链接与回放,为AI辅助修改现有项目提供具体示例。

推荐理由

相比此前开发复盘,新增了联机改造的具体约束写法。原文正文+原站 RSS 时间核验;属于作者个人实验,未独立复测联机效果。

正文 · AI 翻译

我为 Battledrones 添加了四人在线模式——此前的地图最多只支持两人。

这是我最初使用的提示词:

Add a new map for a four player battle - four way rotational symmetry, up to four AI players, works with the WebSocket non-audio based multiplayer mode so up to four human players can join (any spare slots use AI)

Claude Opus 5.5 添加了一张名为“Compass Rose”的新地图,并修改了基于 WebSockets 的多人联机网络代码,让这张地图最多支持四名玩家,可通过分享链接或二维码加入。

The new map does indeed look a bit like a rose - it uses the cold and ice biome. Also shown are purple robots battling on the map.

新增队伍使用紫色和绿色主题的机器人,与现有的蓝色和红色设计搭配。你可以在更新后的模型浏览器中预览这些配色。

这里有一个回放链接,可以观看一场启用了“Goliath Armada”变异模式的四方 AI 对战。在该模式下,每一方开局都有四台巨型 Goliath 机甲单位。

来源:Simon Willison · simonwillison.net