Choose color against cpu

This commit is contained in:
Josh-Heaps
2026-06-12 10:51:26 -06:00
parent 6402ef268c
commit 743c395e11
8 changed files with 92 additions and 19 deletions
@@ -91,7 +91,8 @@ async function startCPUGame() {
try {
const difficulty = await ChessModals.promptDifficulty();
const gameData = await ChessAPI.createCPUGame(difficulty);
const color = await ChessModals.promptColor();
const gameData = await ChessAPI.createCPUGame(difficulty, color);
GameState.setGameInfo(gameData.gameId, gameData.id, gameData.isWhite);
GameState.clearPreviousMove();