added bitboard overloads + removed GetBoard()
This commit is contained in:
1 parent
a23918ab8d
commit
d566c6d0e4
5 files changed
+127
-97
No files matched your search
+2
-2
@@ -13,7 +13,7 @@ static int GetPositionalScore(Board &board, int type, int color) {
|
||||
|
||||
Bitboard pieces = board.pieces[type] & board.colors[color];
|
||||
|
||||
while (pieces.GetBoard()) {
|
||||
while (pieces) {
|
||||
int square = pieces.getLS1BIndex();
|
||||
|
||||
// White
|
||||
@@ -40,4 +40,4 @@ int Evaluate(Board &board) {
|
||||
}
|
||||
|
||||
return board.sideToMove ? -score : score;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user