]> git.sesse.net Git - stockfish/blobdiff - src/hashprobe.proto
Send back a prettyprinted version of the move on hash probe.
[stockfish] / src / hashprobe.proto
index b02a7a92fccac6313b4e5898893c06d61a6ee953..175cd7731a32784054db230a74af697815e605e0 100644 (file)
@@ -5,6 +5,7 @@ message HashProbeRequest {
        string fen = 1;
 }
 message HashProbeResponse {
+       HashProbeLine root = 2;
        repeated HashProbeLine line = 1;
 }
 message HashProbeLine {
@@ -12,8 +13,8 @@ message HashProbeLine {
        bool found = 2;
 
        repeated HashProbeMove pv = 3;
-       int32 value = 4;  // Dynamic eval (may be inexact, see the "bound" field)
-       int32 eval = 5;  // Static eval
+       HashProbeScore value = 4;  // Dynamic eval (may be inexact, see the "bound" field)
+       HashProbeScore eval = 5;  // Static eval
        int32 depth = 6;
 
        enum ValueBound {
@@ -29,6 +30,18 @@ message HashProbeMove {
        string from_sq = 1;  // a1, a2, etc.
        string to_sq = 2;
        string promotion = 3;  // Q, R, etc.
+
+       string pretty = 4;  // e.g. Rxf6+
+}
+message HashProbeScore {
+       enum ScoreType {
+               SCORE_NONE = 0;
+               SCORE_CP = 1;
+               SCORE_MATE = 2;
+       }
+       ScoreType score_type = 1;
+       int32 score_cp = 2;
+       int32 score_mate = 3;
 }
 
 service HashProbe {