Skip to content

Commit dd9a1dd

Browse files
authored
Fix typo in move type check for score calculation
1 parent d877e11 commit dd9a1dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎movepick.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void orderMoves(chess::Board &board, chess::Movelist &moves, chess::Move ttMove,
1818
if (move == ttMove)
1919
score = 10000;
2020
else if (board.isCapture(move))
21-
score = ((move.typeOf() & EN_PASSANT) == 0
21+
score = ((move.type_of() & EN_PASSANT) == 0
2222
? piece_value(board.at<PieceType>(move.to()))
2323
: piece_value(PAWN)) *
2424
10 -

0 commit comments

Comments
 (0)