Documentation ¶
Overview ¶
Package movegen contains all the move-generating functions. It makes heavy use of the GADDAG.
Index ¶
Constants ¶
View Source
const ( NumTotalLetters = 27 // includes blank BlankPosition = 26 // The blank is located at this position in a rack. )
Variables ¶
This section is empty.
Functions ¶
func LettersRemain ¶
LettersRemain returns true if there is at least one letter in the rack, 0 otherwise.
func NextNodeIdx ¶
NextNodeIdx returns the index, in gaddagData, of the next node's arc bit vector, given an initial node index and a letter. The letter can be the SeparationToken as well. It finds the ARC corresponding to the letter/token and finds the node that it points to. This is a rewrite of the NextArc function in the original GADDAG paper. Returns 0 if the next node was not found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.