mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08:00
Rename promotion_piece_type() to promotion_type()
Shorter and equally clear to understand. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ const string move_to_uci(Move m, bool chess960) {
|
||||
to = from + (file_of(to) == FILE_H ? Square(2) : -Square(2));
|
||||
|
||||
if (is_promotion(m))
|
||||
promotion = char(tolower(piece_type_to_char(promotion_piece_type(m))));
|
||||
promotion = char(tolower(piece_type_to_char(promotion_type(m))));
|
||||
|
||||
return square_to_string(from) + square_to_string(to) + promotion;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ const string move_to_san(Position& pos, Move m) {
|
||||
if (is_promotion(m))
|
||||
{
|
||||
san += '=';
|
||||
san += piece_type_to_char(promotion_piece_type(m));
|
||||
san += piece_type_to_char(promotion_type(m));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user