using namespace hashprobe;
std::string FormatMove(const HashProbeMove &move) {
- if (move.from_sq().empty()) return "MOVE_NONE";
- return move.from_sq() + move.to_sq() + move.promotion();
+ if (move.pretty().empty()) return "MOVE_NONE";
+ return move.pretty();
}
int main(int argc, char** argv) {
std::cout << ">=";
break;
}
- std::cout << " " << UCI::value(Value(line.value())) << " ";
+ switch (line.value().score_type()) {
+ case HashProbeScore::SCORE_CP:
+ std::cout << " cp " << line.value().score_cp() << " ";
+ break;
+ case HashProbeScore::SCORE_MATE:
+ std::cout << " mate " << line.value().score_mate() << " ";
+ break;
+ }
std::cout << line.depth() << std::endl;
}
std::cout << "END" << std::endl;