]> git.sesse.net Git - stockfish/blobdiff - src/client.cpp
Remove the non-pretty moves from the protobuf, as it takes up a little CPU time for...
[stockfish] / src / client.cpp
index 6049495a4a0d430a9660fdaadf9580f334c7fa42..a59b961ad9736ac73ca68d85f0d6c0347906499e 100644 (file)
@@ -14,8 +14,8 @@ using grpc::Status;
 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) {