Fix: Checkmate evaluation was reversed, therefore there was no will to checkmate on either side
parent
278e5092e6
commit
da28e94c01
|
|
@ -13,8 +13,8 @@ class BestMoveSearcher {
|
|||
static int getPositionBaseValue(Position position) {
|
||||
if (LegalMoves.isCheckmate(position)) {
|
||||
return position.isWhiteTurn
|
||||
? Numbers.maxInteger
|
||||
: Numbers.minInteger;
|
||||
? Numbers.minInteger
|
||||
: Numbers.maxInteger;
|
||||
}
|
||||
int value = 0;
|
||||
List<int> whitePawnFiles = List.filled(8, 0, growable: false); // isolated pawns, doubled pawns
|
||||
|
|
|
|||
Loading…
Reference in New Issue