支持多人数对局与 AI 补位:玩法声明人数范围、匹配分队列与超时补 AI、房间玩家名册
This commit is contained in:
@@ -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{} }
|
||||
|
||||
Reference in New Issue
Block a user