chipiron.players.move_selector.treevalue.node_selector.recurzipf package
Submodules
chipiron.players.move_selector.treevalue.node_selector.recurzipf.recur_zipf_base module
This module contains the implementation of the RecurZipfBase class, which is a node selector for a move selector tree.
The RecurZipfBase class is responsible for selecting the next node to explore in a move selector tree based on the RecurZipf algorithm.
Classes: - RecurZipfBase: The RecurZipfBase Node selector.
- class chipiron.players.move_selector.treevalue.node_selector.recurzipf.recur_zipf_base.RecurZipfBase(args: RecurZipfBaseArgs, random_generator: Random, opening_instructor: OpeningInstructor)[source]
Bases:
objectThe RecurZipfBase Node selector
- __str__() str[source]
Returns a string representation of the RecurZipfBase node selector.
Returns: - str: The string representation of the RecurZipfBase node selector.
- choose_node_and_move_to_open(tree: MoveAndValueTree, latest_tree_expansions: tree_man.TreeExpansions) OpeningInstructions[source]
Chooses the next node to explore and the move to open.
Args: - tree (trees.MoveAndValueTree): The move selector tree. - latest_tree_expansions (tree_man.TreeExpansions): The latest tree expansions.
Returns: - OpeningInstructions: The instructions for opening the selected move.
- opening_instructor: OpeningInstructor
- class chipiron.players.move_selector.treevalue.node_selector.recurzipf.recur_zipf_base.RecurZipfBaseArgs(type: ~typing.Literal[<NodeSelectorType.RecurZipfBase: 'RecurZipfBase'>], move_explorer_priority: ~chipiron.players.move_selector.treevalue.node_selector.move_explorer.SamplingPriorities)[source]
Bases:
objectArguments for the RecurZipfBase node selector.
- Variables:
move_explorer_priority (SamplingPriorities) – The priority for move exploration.
- move_explorer_priority: SamplingPriorities
- type: RecurZipfBase: 'RecurZipfBase'>]