Documentation ¶
Index ¶
- Constants
- Variables
- type SmallMove
- func (m *SmallMove) AddEstimatedValue(v int16)
- func (m *SmallMove) CoordsAndVertical() (int, int, bool)
- func (m *SmallMove) EstimatedValue() int16
- func (m *SmallMove) IsPass() bool
- func (m *SmallMove) PlayLength() int
- func (m *SmallMove) Score() int
- func (m *SmallMove) SetEstimatedValue(v int16)
- func (m *SmallMove) ShortDescription() string
- func (m *SmallMove) TilesPlayed() int
- func (m *SmallMove) TinyMove() TinyMove
- type TinyMove
Constants ¶
View Source
const BlanksBitMask = 127 << 12
View Source
const ColBitMask = 0b00111110
View Source
const RowBitMask = 0b00000111_11000000
Variables ¶
View Source
var DefaultSmallMove = SmallMove{}
DefaultSmallMove is a blank move (a pass)
View Source
var TBitMasks = [7]uint64{63 << 20, 63 << 26, 63 << 32, 63 << 38, 63 << 44, 63 << 50, 63 << 56}
Functions ¶
This section is empty.
Types ¶
type SmallMove ¶
type SmallMove struct {
// contains filtered or unexported fields
}
A SmallMove consists of a TinyMove which encodes all the positional and tile info, plus a few extra fields needed for endgames and related modules. We're trying to strike a balance between decreasing allocations and still staying speedy.
func TilePlayMove ¶
func (*SmallMove) AddEstimatedValue ¶
AddEstimatedValue adds an estimate to the existing estimated value of this estimate. Estimate.
func (*SmallMove) EstimatedValue ¶
EstimatedValue is an internal value that is used in calculating endgames and related metrics.
func (*SmallMove) PlayLength ¶
func (*SmallMove) SetEstimatedValue ¶
SetEstimatedValue sets the estimated value of this move. It is calculated outside of this package.
func (*SmallMove) ShortDescription ¶
func (*SmallMove) TilesPlayed ¶
Click to show internal directories.
Click to hide internal directories.