Documentation ¶
Index ¶
- func EvalWeightedPolicy(ctx context.Context, mc *MonteCarloAI, p *tak.Position, alloc *tak.Position) *tak.Position
- func GetRand(ctx context.Context) *rand.Rand
- func UniformRandomPolicy(ctx context.Context, m *MonteCarloAI, p *tak.Position, alloc *tak.Position) *tak.Position
- func WithRand(ctx context.Context, r *rand.Rand) context.Context
- type MCTSConfig
- type MonteCarloAI
- type PolicyFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalWeightedPolicy ¶
func UniformRandomPolicy ¶
Types ¶
type MCTSConfig ¶
type MonteCarloAI ¶
type MonteCarloAI struct {
// contains filtered or unexported fields
}
func NewMonteCarlo ¶
func NewMonteCarlo(cfg MCTSConfig) *MonteCarloAI
type PolicyFunc ¶
type PolicyFunc func(ctx context.Context, m *MonteCarloAI, p *tak.Position, next *tak.Position) *tak.Position
func NewMinimaxPolicy ¶
func NewMinimaxPolicy(cfg *MCTSConfig, depth int) PolicyFunc
Click to show internal directories.
Click to hide internal directories.