last_moves
Retrieve the last N moves in UCI notation for the current chess game. Pass a positive integer to specify how many moves to fetch, enabling quick review of recent game state.
Instructions
Return the last N moves in UCI (default 1).
Parameters:
n: integer >= 1. If n <= 0, returns an empty list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |