Skip to content

Commit

Permalink
Added docs/stockfish-eval.md
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jan 11, 2024
1 parent 292d129 commit 32585b5
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 32585b5

Please sign in to comment.