支持多人数对局与 AI 补位:玩法声明人数范围、匹配分队列与超时补 AI、房间玩家名册

This commit is contained in:
2026-09-28 00:41:28 +08:00
parent fb5a730ef3
commit adb31eec68
17 changed files with 854 additions and 367 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ type state struct {
}
// Game 实现 game.Game 接口。
type Game struct{}
type Game struct {
aiPlanIdx int // AI 计划落点(配合 aiHasPlan 使用)
aiHasPlan bool // AI 是否已有落子计划
aiThinkAt int64 // AI 落子时刻,模拟思考耗时
}
// New 创建玩法实例:每局一个,状态互不影响。
func New() *Game { return &Game{} }