if (type_of(move) == CASTLING) {
to = make_square(to > from ? FILE_G : FILE_C, rank_of(from));
}
-
- decoded->set_from_sq(UCI::square(from));
- decoded->set_to_sq(UCI::square(to));
-
- if (type_of(move) == PROMOTION) {
- decoded->set_promotion(std::string() + " PNBRQK"[promotion_type(move)]);
- }
Piece moved_piece = pos->moved_piece(move);
std::string pretty;