Skip to content

Commit

Permalink
Merge pull request #239 from chesslablab/issue/171-Document-the-stock…
Browse files Browse the repository at this point in the history
…fish_eval-command

Added docs/stockfish-eval.md
  • Loading branch information
programarivm authored Jan 11, 2024
2 parents 292d129 + 32585b5 commit b4247c7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/stockfish-eval.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# /stockfish_eval

Returns Stockfish's evaluation for the given position.

| Name | Description | Required |
| ---- | ----------- | -------- |
| `fen` | A FEN string. | Yes |

## Usage

### Example

Evaluate C65 — Ruy Lopez: Berlin Defense.

```js
ws.send('/stockfish_eval "r1bqkb1r/pppp1ppp/2n2n2/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4"');
```

```text
{
"/stockfish_eval": {
"nag": "$10",
"meaning": "Equal position",
"symbol": "="
}
}
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pages:
- /restart: restart.md
- /inbox: inbox.md
- /stockfish: stockfish.md
- /stockfish_eval: stockfish-eval.md
theme: readthedocs

0 comments on commit b4247c7

Please sign in to comment.