search

package
v0.0.0-...-4c31ed0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXACT = iota
	LOWERBOUND
	UPPERBOUND
)

Variables

This section is empty.

Functions

func Search(pos *board.Position, maxDepth int, stdout chan string) (bestMoveScore int, bestMove []board.Move)

Search returns the best move sequence in the position (for the current side) with its score evaluation.

Types

type HistoryMoves

type HistoryMoves [12][64]int

HistoryMoves stores moves score during search by piece moved/target square

type KillerMoves

type KillerMoves struct {
	// contains filtered or unexported fields
}

KillerMoves holds the killers moves(quiet/non capture) found during search that produces a beta cutoff

type PrincipalVariation

type PrincipalVariation []board.Move

PrincipalVariation stores the current best line when searching for best moves

func (*PrincipalVariation) String

func (pv *PrincipalVariation) String() string

String returns the string representation of the principal variation moves

type SearchState

type SearchState struct {
	// contains filtered or unexported fields
}

type TranspositionTable

type TranspositionTable struct {
	// contains filtered or unexported fields
}

TranspositionTable stores the information related to an specific position

Jump to

Keyboard shortcuts

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