mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +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:
@@ -391,7 +391,7 @@ int generate_evasions(const Position &pos, MoveStack *mlist) {
|
||||
b1 = pos.pawn_attacks(them, checksq) & pos.pawns(us) & ~pinned;
|
||||
while(b1) {
|
||||
from = pop_1st_bit(&b1);
|
||||
if(pawn_rank(us, checksq) == RANK_8) {
|
||||
if(relative_rank(us, checksq) == RANK_8) {
|
||||
mlist[n++].move = make_promotion_move(from, checksq, QUEEN);
|
||||
mlist[n++].move = make_promotion_move(from, checksq, ROOK);
|
||||
mlist[n++].move = make_promotion_move(from, checksq, BISHOP);
|
||||
|
||||
Reference in New Issue
Block a user