From: Marco Costalba Date: Tue, 6 Jan 2009 15:10:22 +0000 (+0100) Subject: Fix a small bug in rook pawn evaluation X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9b87d151bcdda4c8992f97582b974dc7c4c84686 Fix a small bug in rook pawn evaluation Signed-off-by: Marco Costalba --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2bfe5238..4b98a13c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1018,8 +1018,8 @@ namespace { // value if the other side has a rook or queen. if (square_file(s) == FILE_A || square_file(s) == FILE_H) { - if( pos.non_pawn_material(them) == KnightValueMidgame // FIXME should be <= ??? - && pos.piece_count(them, KNIGHT) == 1) + if( pos.non_pawn_material(them) <= KnightValueMidgame + && pos.piece_count(them, KNIGHT) <= 1) ebonus += ebonus / 4; else if(pos.rooks_and_queens(them)) ebonus -= ebonus / 4;