mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +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:
+1
-1
@@ -718,7 +718,7 @@ inline bool Position::move_is_pawn_push_to_7th(Move m) const {
|
||||
Color c = this->side_to_move();
|
||||
return
|
||||
this->piece_on(move_from(m)) == pawn_of_color(c) &&
|
||||
pawn_rank(c, move_to(m)) == RANK_7;
|
||||
relative_rank(c, move_to(m)) == RANK_7;
|
||||
}
|
||||
|
||||
inline bool Position::move_is_passed_pawn_push(Move m) const {
|
||||
|
||||
Reference in New Issue
Block a user