- int seeValue = pos.see(moves[i].move);
- if (seeValue >= 0)
- {
- if (move_promotion(moves[i].move))
- moves[i].score = QueenValueMidgame;
- else
- moves[i].score = int(pos.midgame_value_of_piece_on(move_to(moves[i].move)))
- -int(pos.type_of_piece_on(move_from(moves[i].move)));
- } else
- moves[i].score = seeValue;
+ m = moves[i].move;
+ if (move_promotion(m))
+ moves[i].score = QueenValueMidgame;
+ else
+ moves[i].score = int(pos.midgame_value_of_piece_on(move_to(m)))
+ -int(pos.type_of_piece_on(move_from(m)));