Compare commits

..

2 Commits

2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@ class Numbers {
Numbers._();
static const int maxInteger = 0x7FFFFFFFFFFFFFFF;
static const int minInteger = -0x7FFFFFFFFFFFFFFF;
static const int maxInteger = 0x7FFFFFFF;
static const int minInteger = -0x7FFFFFFF;
}