X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhashprobe.proto;h=175cd7731a32784054db230a74af697815e605e0;hp=393553e94b46043ca75af59db3c550b82aa8ed79;hb=4455f354f7b3ea7446c6c26dcb2837ca2b7be06f;hpb=6f00ea1c0fa32f3c1923e7e29a70cfc0d8dc1cc5 diff --git a/src/hashprobe.proto b/src/hashprobe.proto index 393553e9..175cd773 100644 --- a/src/hashprobe.proto +++ b/src/hashprobe.proto @@ -1,13 +1,21 @@ syntax = "proto3"; +package hashprobe; + message HashProbeRequest { string fen = 1; } message HashProbeResponse { - bool found = 1; - int32 move = 2; // See types.h - int32 value = 3; // Dynamic eval (may be inexact, see the "bound" field) - int32 eval = 4; // Static eval - int32 depth = 5; + HashProbeLine root = 2; + repeated HashProbeLine line = 1; +} +message HashProbeLine { + HashProbeMove move = 1; + bool found = 2; + + repeated HashProbeMove pv = 3; + HashProbeScore value = 4; // Dynamic eval (may be inexact, see the "bound" field) + HashProbeScore eval = 5; // Static eval + int32 depth = 6; enum ValueBound { BOUND_NONE = 0; @@ -15,7 +23,25 @@ message HashProbeResponse { BOUND_LOWER = 2; BOUND_EXACT = 3; }; - ValueBound bound = 6; + ValueBound bound = 7; +} + +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 {