Class NegamaxResult<M>

Object returned after searching the tree using negamax.

Type Parameters

  • M

Hierarchy

Constructors

  • Type Parameters

    • M

    Parameters

    • exit: SearchExit

      Reason the search has stopped and result returned.

    • move: M

      The best move from the activeRoot.

    • value: number

      Value of activeRoot according to search.

    • depth: number

      Depth reached and fully searched.

    • outcomes: number

      Number of nodes at bottom of tree (not neccessarily leaves).

    • nodes: number

      Number of nodes in full tree.

    • pathLength: number

      Minimum number of moves until a leaf node.

    Returns NegamaxResult<M>

Properties

Reason the search has stopped and result returned.

move: M

The best move from the activeRoot.

value: number

Value of activeRoot according to search.

depth: number

Depth reached and fully searched.

outcomes: number

Number of nodes at bottom of tree (not neccessarily leaves).

nodes: number

Number of nodes in full tree.

pathLength: number

Minimum number of moves until a leaf node.

Generated using TypeDoc