zobrist

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

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 *move.Move, 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

func (z *Zobrist) Initialize(boardDim int)

Jump to

Keyboard shortcuts

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