moves
Generate all legal moves for a backgammon board and dice roll, returning each move's notation, steps, and position key.
Instructions
Generate all legal moves for a board and dice roll.
Args: board_input: Board in any supported format. dice: Dice roll as [die1, die2], each 1-6. player: Who is on roll ("x" or "o"). Default "x".
Returns: Dict with list of legal moves, each with notation, steps, and position key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dice | Yes | ||
| player | No | x | |
| board_input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||