Compare commits

..

No commits in common. "da28e94c019618324a005c5be8120fe554e53034" and "a22d229c0179f2096d6a9bc929401a25d64384f9" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,8 @@ class BestMoveSearcher {
static int getPositionBaseValue(Position position) { static int getPositionBaseValue(Position position) {
if (LegalMoves.isCheckmate(position)) { if (LegalMoves.isCheckmate(position)) {
return position.isWhiteTurn return position.isWhiteTurn
? Numbers.minInteger ? Numbers.maxInteger
: Numbers.maxInteger; : Numbers.minInteger;
} }
int value = 0; int value = 0;
List<int> whitePawnFiles = List.filled(8, 0, growable: false); // isolated pawns, doubled pawns List<int> whitePawnFiles = List.filled(8, 0, growable: false); // isolated pawns, doubled pawns

View File

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