using namespace hashprobe;
std::string FormatMove(const HashProbeMove &move) {
- if (move.from_sq().empty()) return "MOVE_NONE";
+ if (move.pretty().empty()) return "MOVE_NONE";
return move.pretty();
}
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;