summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c852a94)
It works better with MVV ordering.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
{
Move m = moves[i].move;
moves[i].score = pos.see(m);
{
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));