Status status = stub->Probe(&context, request, &response);
if (status.ok()) {
- std::cout << response.found() << " "
- << UCI::square(from_sq(Move(response.move())))
- << UCI::square(to_sq(Move(response.move()))) << " ";
+ std::cout << response.found() << " ";
+ if (Move(response.move()) == MOVE_NULL) {
+ std::cout << "Null-move ";
+ } else if (Move(response.move()) == MOVE_NONE) {
+ std::cout << "MOVE_NONE ";
+ } else {
+ std::cout << UCI::square(from_sq(Move(response.move())))
+ << UCI::square(to_sq(Move(response.move()))) << " ";
+ }
switch (response.bound()) {
case HashProbeResponse::BOUND_NONE:
std::cout << "?";