mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00: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:
+2
-2
@@ -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