rollout
Run Monte Carlo simulations of a backgammon position to obtain win probabilities and standard deviations, configurable by games, depth, and mode.
Instructions
Perform a cubeless Monte Carlo rollout of a position.
Args: board_input: Board in any supported format. player: Who is on roll ("x" or "o"). Default "x". ngames: Number of games to simulate (default 1296, max configurable). ply: Evaluation depth per move (0, 1, or 2). rollout_type: Rollout mode: "auto", "race", "bearoff", "over". score: Match score as [x_away, o_away]. Omit for money game. cube: Cube state dict. seed: RNG seed for reproducibility.
Returns: Dict with win probabilities and standard deviations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ply | No | ||
| cube | No | ||
| seed | No | ||
| score | No | ||
| ngames | No | ||
| player | No | x | |
| board_input | Yes | ||
| rollout_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||