Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document /stockfish command #229

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/stockfish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# /stockfish

Play a game with the Stockfish engine.

| Name | Description | Required |
| ---- | ----------- | -------- |
| `-t minutes` | Play a game against Stockfish with a time limit in minutes | No |
| `-b` | Play a game of chess against Stockfish with the black pieces | No |
| `-w` | Play a game of chess against Stockfish with the white pieces | No |

## Usage

### Example

```js
ws.send('/stockfish');
```

```text
1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. Nxe5
```

This output shows what moves Stockfish has played throughout the game. The output varies depending on the game played.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ pages:
- /rematch: rematch.md
- /restart: restart.md
- /inbox: inbox.md
- /stockfish: stockfish.md
theme: readthedocs