mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Rename type_of_piece() and color_of_piece()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -237,7 +237,7 @@ void MovePicker::score_captures() {
|
||||
{
|
||||
m = cur->move;
|
||||
cur->score = piece_value_midgame(pos.piece_on(move_to(m)))
|
||||
- type_of_piece(pos.piece_on(move_from(m)));
|
||||
- piece_type(pos.piece_on(move_from(m)));
|
||||
|
||||
if (move_is_promotion(m))
|
||||
cur->score += QueenValueMidgame;
|
||||
@@ -276,7 +276,7 @@ void MovePicker::score_evasions() {
|
||||
cur->score = seeScore - History::MaxValue; // Be sure we are at the bottom
|
||||
else if (pos.move_is_capture(m))
|
||||
cur->score = piece_value_midgame(pos.piece_on(move_to(m)))
|
||||
- type_of_piece(pos.piece_on(move_from(m))) + History::MaxValue;
|
||||
- piece_type(pos.piece_on(move_from(m))) + History::MaxValue;
|
||||
else
|
||||
cur->score = H.value(pos.piece_on(move_from(m)), move_to(m));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user