Documentation
¶
Index ¶
Constants ¶
View Source
const ( LeaveFilename = "leaves.olv" PEGAdjustmentFilename = "preendgame.json" )
Variables ¶
This section is empty.
Functions ¶
func LeaveCacheLoadFunc ¶
Types ¶
type BlankLeaves ¶
type BlankLeaves struct{}
func (*BlankLeaves) LeaveValue ¶
func (b *BlankLeaves) LeaveValue(leave alphabet.MachineWord) float64
type ExhaustiveLeaveStrategy ¶
type ExhaustiveLeaveStrategy struct {
// contains filtered or unexported fields
}
ExhaustiveLeaveStrategy should apply an equity calculation for all leaves exhaustively.
func (ExhaustiveLeaveStrategy) LeaveValue ¶
func (els ExhaustiveLeaveStrategy) LeaveValue(leave alphabet.MachineWord) float64
type Leaves ¶
type Leaves interface {
LeaveValue(leave alphabet.MachineWord) float64
}
type NoLeaveStrategy ¶
type NoLeaveStrategy struct{}
NoLeaveStrategy does not take leave into account at all.
func NewNoLeaveStrategy ¶
func NewNoLeaveStrategy() *NoLeaveStrategy
func (*NoLeaveStrategy) LeaveValue ¶
func (nls *NoLeaveStrategy) LeaveValue(leave alphabet.MachineWord) float64
type OldLeaves ¶
type OldLeaves struct {
// contains filtered or unexported fields
}
func (*OldLeaves) LeaveValue ¶
func (olv *OldLeaves) LeaveValue(leave alphabet.MachineWord) float64
type Strategizer ¶
type Strategizer interface {
// Equity is a catch-all term for most post-score adjustments that
// need to be made. It includes first-turn placement heuristic,
// leave calculations, any pre-endgame timing heuristics, and more.
Equity(play *move.Move, board *board.GameBoard, bag *alphabet.Bag,
oppRack *alphabet.Rack) float64
LeaveValue(leave alphabet.MachineWord) float64
}
Strategizer is in charge of picking plays using strategy.
Click to show internal directories.
Click to hide internal directories.