From 6178f8592d822869d2bdbf08a201900c4b584f30 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 17 Mar 2016 10:39:14 +0100 Subject: [PATCH] Write out null-move and no move. --- src/client.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 5bb480fa..b3ec68f8 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -34,9 +34,15 @@ int main(int argc, char** argv) { 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 << "?"; -- 2.39.2