simplesimmer

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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) BestPlay

func (p *SimpleSimmer) BestPlay(ctx context.Context) (*move.Move, error)

func (*SimpleSimmer) BestPlays

func (p *SimpleSimmer) BestPlays() *montecarlo.SimmedPlays

func (*SimpleSimmer) GenAndSim

func (p *SimpleSimmer) GenAndSim(ctx context.Context, nMoves int, addedMove *move.Move) (string, error)

func (*SimpleSimmer) GenerateMoves

func (p *SimpleSimmer) GenerateMoves(numPlays int) []*move.Move

func (*SimpleSimmer) SetLogging

func (p *SimpleSimmer) SetLogging(l bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL