-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from fitztrev/schema-cloud-eval
Add schema for cloud eval response
- Loading branch information
Showing
3 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
type: object | ||
|
||
properties: | ||
depth: | ||
type: integer | ||
fen: | ||
type: string | ||
knodes: | ||
type: integer | ||
pvs: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
cp: | ||
type: integer | ||
description: Evaluation in centi-pawns, from White's point of view | ||
mate: | ||
type: integer | ||
description: Evaluation in moves to mate, from White's point of view | ||
moves: | ||
type: string | ||
description: Variation in UCI notation | ||
|
||
example: | ||
{ | ||
"depth": 29, | ||
"fen": "r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R", | ||
"knodes": 106325, | ||
"pvs": [ | ||
{ | ||
"cp": 41, | ||
"moves": "d1e2 d8e7 a2a4 a7a6 b5c4 d7d6 d2d3 g8f6 c1e3 c6a5" | ||
}, | ||
{ | ||
"cp": 39, | ||
"moves": "c2c3 a7a6 b5a4 g8f6 d2d3 b7b5 a4b3 h7h6 a2a4 c8b7" | ||
}, | ||
{ | ||
"cp": 37, | ||
"moves": "d2d3 d8f6 c2c3 a7a6 b5a4 f8c5 d3d4 c5a7 c1e3 g8e7" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters