mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47: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:
+2
-2
@@ -81,9 +81,9 @@ Move move_from_string(const Position &pos, const std::string &str) {
|
||||
SquareDelta delta = (to > from)? DELTA_E : DELTA_W;
|
||||
Square s;
|
||||
for(s = from + delta;
|
||||
pawn_rank(us, s) == RANK_1 && pos.piece_on(s) != rook_of_color(us);
|
||||
relative_rank(us, s) == RANK_1 && pos.piece_on(s) != rook_of_color(us);
|
||||
s += delta);
|
||||
if(pawn_rank(us, s) == RANK_1 && pos.piece_on(s) == rook_of_color(us))
|
||||
if(relative_rank(us, s) == RANK_1 && pos.piece_on(s) == rook_of_color(us))
|
||||
return make_castle_move(from, s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user