zobrist

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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, maxPlayer bool) uint64

func (*Zobrist) Hash

func (z *Zobrist) Hash(squares alphabet.MachineWord, maxPlayerRack *alphabet.Rack,
	minPlayerRack *alphabet.Rack, minimizingPlayerToMove bool) 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