Crate oxymcts

Crate oxymcts 

Source

Modules§

iter
Iterators.

Macros§

tree
Creates a tree from expressions.

Structs§

DefaultBackProp
A default backprop policy it will take the reward of the simulation and backkpropagate the result to the branch nodes.
DefaultLazyTreePolicy
Explores at least once each child node, before going deeper.
DefaultPlayout
Simulating taking random moves a applying until the end.
LazyMcts
This is a special MCTS because it doesn’t store the state in the node but instead stores the historic to the node.
MctsNode
NodeId
Node ID.
NodeMut
Node mutator.
NodeRef
Node reference.
Tree
Vec-backed ID-tree.

Traits§

BackPropPolicy
Evaluator
GameTrait
LazyTreePolicy
Playout

Functions§

mcts_uct_agent
random_agent
uct_value
Calculates the uct_value.

Type Aliases§

DefaultMcts
This mcts uses UCT, naive simulation applying random moves until a final state, and scoring 1 if the player won.
LazyMctsNode
LazyMctsTree
MctsTree
Nat
Num