Skip to content

AlphaBetaResult

Defined in: src/modules/game-search/alpha-beta.ts:46

What alphaBetaSearch found.

M

complete: boolean

Defined in: src/modules/game-search/alpha-beta.ts:52

True when score is exact: the whole game tree was searched, or a forced win or loss was proven. False when a budget stopped the search first, and when the state had a single move, which is returned without searching.


depth: number

Defined in: src/modules/game-search/alpha-beta.ts:54

Deepest look-ahead, in moves, that finished; 0 when nothing was searched.


move: M | undefined

Defined in: src/modules/game-search/alpha-beta.ts:56

The best move, or undefined when the state has no legal move.


nodes: number

Defined in: src/modules/game-search/alpha-beta.ts:58

Moves tried (apply calls), over all depths.


score: number

Defined in: src/modules/game-search/alpha-beta.ts:60

The value of move from the side of the player to move at the root; see WIN_SCORE.