M9: 체스 컴퓨터 상대를 새 체스 수 생성기(체스960)에 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-06 13:46:46 +09:00
parent fde665b13e
commit c78d0fd1fc
2 changed files with 22 additions and 17 deletions

View File

@@ -39,8 +39,8 @@ describe('chess bot', () => {
const a = decide(make(fen), seed) as Extract<ChessAction, { type: 'move' }>;
expect(a.from).toBe('d5');
const c = load(fen);
c.move({ from: a.from, to: a.to });
expect(c.isAttacked(a.to as 'a1', 'b')).toBe(false);
c.make(c.findMove(a.from, a.to)!);
expect(c.isAttacked(a.to, 'b')).toBe(false);
}
});