X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhashprobe.proto;h=dfd16fdcd3dcfbd4bcdc75799449d6cce69c48af;hp=b02a7a92fccac6313b4e5898893c06d61a6ee953;hb=678d7c5c411d6f2f120b7735d292df1d3c66c601;hpb=5458a7787b0ae3c603794d7170d1acc7f0e88dd3 diff --git a/src/hashprobe.proto b/src/hashprobe.proto index b02a7a92..dfd16fdc 100644 --- a/src/hashprobe.proto +++ b/src/hashprobe.proto @@ -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 { @@ -30,6 +31,15 @@ message HashProbeMove { string to_sq = 2; string promotion = 3; // Q, R, etc. } +message HashProbeScore { + enum ScoreType { + SCORE_CP = 0; + SCORE_MATE = 1; + } + ScoreType score_type = 1; + int32 score_cp = 2; + int32 score_mate = 3; +} service HashProbe { rpc Probe(HashProbeRequest) returns (HashProbeResponse) {}