mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Rename pawn_rank() in relative_rank()
It is more clear, at last for me. Also cleanup evaluate_rook() and evaluate_queen() No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -364,8 +364,8 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) {
|
||||
ev += ChainEndgameBonus[f];
|
||||
}
|
||||
if(candidate) {
|
||||
mv += CandidateMidgameBonus[pawn_rank(us, s)];
|
||||
ev += CandidateEndgameBonus[pawn_rank(us, s)];
|
||||
mv += CandidateMidgameBonus[relative_rank(us, s)];
|
||||
ev += CandidateEndgameBonus[relative_rank(us, s)];
|
||||
}
|
||||
|
||||
mgValue[us] += mv;
|
||||
|
||||
Reference in New Issue
Block a user