Compare commits
2 Commits
a22d229c01
...
da28e94c01
| Author | SHA1 | Date |
|---|---|---|
|
|
da28e94c01 | |
|
|
278e5092e6 |
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue