Documentation
¶
Index ¶
- type SimpleSimmer
- func (p *SimpleSimmer) BestPlay(ctx context.Context) (*move.Move, error)
- func (p *SimpleSimmer) BestPlays() *montecarlo.SimmedPlays
- func (p *SimpleSimmer) GenAndSim(ctx context.Context, nMoves int, addedMove *move.Move) (string, error)
- func (p *SimpleSimmer) GenerateMoves(numPlays int) []*move.Move
- func (p *SimpleSimmer) SetLogging(l bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleSimmer ¶
type SimpleSimmer struct { aiturnplayer.AIStaticTurnPlayer // contains filtered or unexported fields }
A SimpleSimmer is a simple wrapper to allow a simple MonteCarlo simming player to work and be used elsewhere in the code. Maybe it can be extended later.
func NewSimpleSimmerFromGame ¶
func NewSimpleSimmerFromGame(g *game.Game) (*SimpleSimmer, error)
func (*SimpleSimmer) BestPlays ¶
func (p *SimpleSimmer) BestPlays() *montecarlo.SimmedPlays
func (*SimpleSimmer) GenerateMoves ¶
func (p *SimpleSimmer) GenerateMoves(numPlays int) []*move.Move
func (*SimpleSimmer) SetLogging ¶
func (p *SimpleSimmer) SetLogging(l bool)
Click to show internal directories.
Click to hide internal directories.