is_legal
Check whether a UCI chess move is legal in the current position, returning a boolean or parse error for invalid input.
Instructions
Check if a UCI move is legal in the current position.
Returns (in result):
{ legal:boolean }.
If the UCI string cannot be parsed, { parse_error:string, legal:false }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uci | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |