Documentation ¶
Index ¶
- Constants
- func GenAllCrossScores(b *Board, ld *tilemapping.LetterDistribution)
- func GenAllCrossSets(b *Board, gd gaddag.WordGraph, ld *tilemapping.LetterDistribution)
- func GenCrossSet(b *Board, row int, col int, dir board.BoardDirection, gaddag gaddag.WordGraph, ...)
- func UpdateCrossSetsForMove(b *Board, m *move.Move, gd gaddag.WordGraph, ...)
- 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 *tilemapping.LetterDistribution)
func GenAllCrossSets ¶
func GenAllCrossSets(b *Board, gd gaddag.WordGraph, ld *tilemapping.LetterDistribution)
func GenCrossSet ¶
func GenCrossSet(b *Board, row int, col int, dir board.BoardDirection, gaddag gaddag.WordGraph, ld *tilemapping.LetterDistribution)
GenCrossSet generates a cross-set for each individual square.
func UpdateCrossSetsForMove ¶
func UpdateCrossSetsForMove(b *Board, m *move.Move, gd gaddag.WordGraph, ld *tilemapping.LetterDistribution)
Types ¶
type CrossScoreOnlyGenerator ¶
type CrossScoreOnlyGenerator struct {
Dist *tilemapping.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 *tilemapping.LetterDistribution Gaddag gaddag.WordGraph }
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.