Documentation ¶
Index ¶
Constants ¶
View Source
const MaxLetters = 35
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zobrist ¶
type Zobrist struct {
// contains filtered or unexported fields
}
generate a zobrist hash for a crossword game position. https://en.wikipedia.org/wiki/Zobrist_hashing
func (*Zobrist) AddMove ¶
func (z *Zobrist) AddMove(key uint64, m *tinymove.SmallMove, moveRack *tilemapping.Rack, moveTiles *[board.MaxBoardDim]tilemapping.MachineLetter, wasOurMove bool, scorelessTurns, lastScorelessTurns int) uint64
func (*Zobrist) Hash ¶
func (z *Zobrist) Hash(squares tilemapping.MachineWord, ourRack, theirRack *tilemapping.Rack, theirTurn bool, scorelessTurns int) uint64
func (*Zobrist) Initialize ¶
Click to show internal directories.
Click to hide internal directories.