Versions in this module Expand all Collapse all v2 v2.0.0 Sep 1, 2020 Changes in this version + const DefaultExplorationConst + var ErrNoActions = errors.New(...) + var ErrNoTrees = errors.New("gmcts: mcts wrapper has collected to trees to analyze") + var ErrTerminal = errors.New(...) + type Game interface + ApplyAction func(i int) (Game, error) + Hash func() interface{} + IsTerminal func() bool + Len func() int + Player func() Player + Winners func() []Player + type MCTS struct + func NewMCTS(initial Game) *MCTS + func (m *MCTS) AddTree(t *Tree) + func (m *MCTS) BestAction() (int, error) + func (m *MCTS) SetSeed(seed int64) + func (m *MCTS) SpawnCustomTree(explorationConst float64) *Tree + func (m *MCTS) SpawnTree() *Tree + type Player int + type Tree struct + func (t *Tree) Search(duration time.Duration) + func (t *Tree) SearchContext(ctx context.Context) + func (t *Tree) SearchRounds(rounds int) + func (t Tree) MaxDepth() int + func (t Tree) Nodes() int + func (t Tree) Rounds() int Other modules containing this package git.sr.ht/~bonbon/gmcts