X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.cpp;h=e1f8e4e77f944bd5831245b81dd16c467c9935f0;hb=af59cb1d63234fe5c711f4a0dc28d56fe79d1274;hp=c0ec86775c48ce12f20d6b637072712905d7fcf4;hpb=158911425bd35e9a95ff7a4c1e65f2ec834e7b5c;p=stockfish diff --git a/src/movepick.cpp b/src/movepick.cpp index c0ec8677..e1f8e4e7 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -1,13 +1,14 @@ /* - Glaurung, a UCI chess playing engine. - Copyright (C) 2004-2008 Tord Romstad + Stockfish, a UCI chess playing engine derived from Glaurung 2.1 + Copyright (C) 2004-2008 Tord Romstad (Glaurung author) + Copyright (C) 2008 Marco Costalba - Glaurung is free software: you can redistribute it and/or modify + Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Glaurung is distributed in the hope that it will be useful, + Stockfish is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -215,9 +216,9 @@ void MovePicker::score_captures() { { Move m = moves[i].move; moves[i].score = pos.see(m); - //if (moves[i].score >= 0) - // moves[i].score = move_promotion(m) ? QueenValueMidgame - // : pos.midgame_value_of_piece_on(move_to(m)); + if (moves[i].score >= 0) + moves[i].score = move_promotion(m) ? QueenValueMidgame + : pos.midgame_value_of_piece_on(move_to(m)); } }