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:
Marco Costalba
2012-02-26 18:31:02 +01:00
parent 96eefc4af6
commit 5bb766e826
4 changed files with 8 additions and 8 deletions

View File

@@ -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));
}
}