M9: 체스 컴퓨터 상대를 새 체스 수 생성기(체스960)에 맞춤
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user