Closed RomainGoussault closed 8 years ago
Try negaMaxRoot(1). If it works, can we stop the iterative deepening when a mate is found ? For example don't go further when alpha > some value
Deepov = noob anyway
negaMaxRoot(1) does not work because we don't check if black is in check after white's move
negaMaxRoot(2) and negaMaxRoot(3) work though..
Deepov prefers the mate in 2 somehow.
fixed
Following position: 8/3R4/3p4/3P4/1K4Q1/8/7k/8 w - - 97 104
If white moves the rook it's a win. But Deepov prefers to move the King.
Sample code to test: