Reddit r/webdev· /u/beatpaq·· 23 天前AI 评分12
用 Node.js 和 SSE 做浏览器自走棋:如何拆分模拟,让 1v1 在独立进程运行又同属一个事件流?
Planning on making a browser based autobattler with Node.js and SSEs. How would I split the simulation up? Is there a way to run 1v1s on separate processes while still belonging to the same event stream?
AI 导读
一位 Web 开发新手计划用 Node.js 和 SSE 做 16 名玩家各自拥有棋盘、两两对战时可观看不同战斗的浏览器自走棋。他询问是否必须一次性跑完整个模拟,还是能把 1v1 放到独立进程、仍归属同一事件流,并提到战斗中约每 15 秒让玩家通过 POST 请求使用技能。
来源:Reddit r/webdev · reddit.com
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发