X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fhashprobe.proto;h=bb34806dfdc53a3a13fdbe5e679d34b987011231;hp=42f6b2b466abc4e27ac7bea0dde25c77a999d650;hb=f32e8bda386ab7f60c90d28b67709ae0d95627f2;hpb=449ac2a19ab4aafc1413a874dc7ba995eabd744a diff --git a/src/hashprobe.proto b/src/hashprobe.proto index 42f6b2b4..bb34806d 100644 --- a/src/hashprobe.proto +++ b/src/hashprobe.proto @@ -13,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 { @@ -31,6 +31,16 @@ message HashProbeMove { string to_sq = 2; string promotion = 3; // Q, R, etc. } +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 { rpc Probe(HashProbeRequest) returns (HashProbeResponse) {}