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
@@ -26,6 +26,7 @@ beforeAll(async () => {
mode: parsed.data.mode,
creatorSide,
highlightingEnabled: parsed.data.highlightingEnabled,
vsAi: parsed.data.vsAi,
});
return { gameId: game.id, creatorToken, creatorColor: creatorSide };
});
@@ -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' },
};
}
@@ -24,6 +24,7 @@ function makeGame(fen?: string): Game {
armed: null,
drawOffer: null,
disconnectAt: {},
lastBroadcastIdx: { w: 0, b: 0 },
};
}
+1
View File
@@ -21,6 +21,7 @@ function makeGame(mode: 'blind' | 'vanilla', fen?: string, status: 'active' | 'f
armed: null,
drawOffer: null,
disconnectAt: {},
lastBroadcastIdx: { w: 0, b: 0 },
};
}