Documentation ¶
Index ¶
- Constants
- func GenAllCrossScores(b *Board, ld *alphabet.LetterDistribution)
- func GenAllCrossSets(b *Board, gd gaddag.GenericDawg, ld *alphabet.LetterDistribution)
- func GenCrossSet(b *Board, row int, col int, dir board.BoardDirection, ...)
- func UpdateCrossSetsForMove(b *Board, m *move.Move, gd gaddag.GenericDawg, ld *alphabet.LetterDistribution)
- type Board
- type CrossScoreOnlyGenerator
- type CrossSet
- type GaddagCrossSetGenerator
- type Generator
Constants ¶
View Source
const ( Left = board.LeftDirection Right = board.RightDirection Horizontal = board.HorizontalDirection Vertical = board.VerticalDirection )
Variables ¶
This section is empty.
Functions ¶
func GenAllCrossScores ¶
func GenAllCrossScores(b *Board, ld *alphabet.LetterDistribution)
func GenAllCrossSets ¶
func GenAllCrossSets(b *Board, gd gaddag.GenericDawg, ld *alphabet.LetterDistribution)
func GenCrossSet ¶
func GenCrossSet(b *Board, row int, col int, dir board.BoardDirection, gaddag gaddag.GenericDawg, ld *alphabet.LetterDistribution)
GenCrossSet generates a cross-set for each individual square.
func UpdateCrossSetsForMove ¶
func UpdateCrossSetsForMove(b *Board, m *move.Move, gd gaddag.GenericDawg, ld *alphabet.LetterDistribution)
Types ¶
type CrossScoreOnlyGenerator ¶
type CrossScoreOnlyGenerator struct {
Dist *alphabet.LetterDistribution
}
func (CrossScoreOnlyGenerator) Generate ¶
func (g CrossScoreOnlyGenerator) Generate(b *Board, row int, col int, dir board.BoardDirection)
func (CrossScoreOnlyGenerator) GenerateAll ¶
func (g CrossScoreOnlyGenerator) GenerateAll(b *Board)
func (CrossScoreOnlyGenerator) UpdateForMove ¶
func (g CrossScoreOnlyGenerator) UpdateForMove(b *Board, m *move.Move)
type GaddagCrossSetGenerator ¶
type GaddagCrossSetGenerator struct { Dist *alphabet.LetterDistribution Gaddag gaddag.GenericDawg }
func (GaddagCrossSetGenerator) Generate ¶
func (g GaddagCrossSetGenerator) Generate(b *Board, row int, col int, dir board.BoardDirection)
func (GaddagCrossSetGenerator) GenerateAll ¶
func (g GaddagCrossSetGenerator) GenerateAll(b *Board)
func (GaddagCrossSetGenerator) UpdateForMove ¶
func (g GaddagCrossSetGenerator) UpdateForMove(b *Board, m *move.Move)
Click to show internal directories.
Click to hide internal directories.