cross_set

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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 Board

type Board = board.GameBoard

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 CrossSet

type CrossSet = board.CrossSet

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)

type Generator

type Generator interface {
	Generate(b *Board, row int, col int, dir board.BoardDirection)
	GenerateAll(b *Board)
	UpdateForMove(b *Board, m *move.Move)
}

Jump to

Keyboard shortcuts

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