classify
Categorize a backgammon board position into GNUBG's position types (over, bearoff, race, crashed, contact) by providing board input and optionally the player on roll.
Instructions
Classify a board position into one of GNUBG's position types.
Args: board_input: Board in any supported format. player: Who is on roll ("x" or "o"). Required if board_input is a boardState dict.
Returns: Dict with classification name and numeric code. Classifications: "over", "bearoff", "race", "crashed", "contact".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | No | ||
| board_input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||