best_move
Find the optimal backgammon move for any board position and dice roll using neural network evaluation. Configure player, ply depth, match score, and cube state.
Instructions
Find the best move for a position and dice roll using neural network evaluation.
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". ply: Evaluation depth (0, 1, or 2). Higher is stronger but slower. score: Match score as [x_away, o_away]. Omit for money game. cube: Cube state as {"owner": "C"/"X"/"O", "value": 1, "centered": true}. seed: RNG seed for reproducibility.
Returns: Dict with best_move notation, alternatives with probabilities, and board after move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ply | No | ||
| cube | No | ||
| dice | Yes | ||
| seed | No | ||
| score | No | ||
| player | No | x | |
| board_input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||