]> git.sesse.net Git - stockfish/blob - src/hashprobe.proto
Better comments and enums in the proto file.
[stockfish] / src / hashprobe.proto
1 syntax = "proto3";
2 message HashProbeRequest {
3         string fen = 1;
4 }
5 message HashProbeResponse {
6         bool found = 1;
7         int32 move = 2;  // See types.h
8         int32 value = 3;  // Dynamic eval (may be inexact, see the "bound" field)
9         int32 eval = 4;  // Static eval
10         int32 depth = 5;
11
12         enum ValueBound {
13                 BOUND_NONE = 0;
14                 BOUND_UPPER = 1;
15                 BOUND_LOWER = 2;
16                 BOUND_EXACT = 3;
17         };
18         ValueBound bound = 6;
19 }
20
21 service HashProbe {
22         rpc Probe(HashProbeRequest) returns (HashProbeResponse) {}
23 }