Fix AI multiple moves and player colors

This commit is contained in:
sokol
2026-02-21 21:25:22 +03:00
parent 1d04a99bd7
commit f3be577a32
5 changed files with 105 additions and 40 deletions

View File

@@ -683,7 +683,8 @@ describe('AIBot', () => {
await bot.playTurn();
assert.strictEqual(gameUI.executedMoves.length, 1);
// AI now makes multiple moves per turn (at least 1)
assert.ok(gameUI.executedMoves.length >= 1, 'Expected at least 1 move to be executed');
assert.strictEqual(gameUI.selectedCell.q, 2);
assert.strictEqual(gameUI.selectedCell.r, 2);
});