feat(bot): vsAi/aiOpponent protocol fields and bot-driver registry

This commit is contained in:
claude (blind_chess)
2026-04-28 14:07:01 -04:00
parent 4407110147
commit 9a837ec319
9 changed files with 52 additions and 3 deletions
@@ -23,6 +23,7 @@ function makeGame(mode: 'blind' | 'vanilla', fen?: string): Game {
armed: null,
drawOffer: null,
disconnectAt: {},
lastBroadcastIdx: { w: 0, b: 0 },
};
}
@@ -24,6 +24,7 @@ function makeGame(opts: { mode?: 'blind' | 'vanilla'; fen?: string; status?: Gam
armed: null,
drawOffer: null,
disconnectAt: {},
lastBroadcastIdx: { w: 0, b: 0 },
aiOpponent: { color: 'b', brain: 'casual' },
};
}