Documentation
¶
Overview ¶
Package opening implements chess opening determination and exploration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book interface {
// Find returns the most specific opening for the list of moves. If no opening is found, Find returns nil.
Find(moves []*chess.Move) *Opening
// Possible returns the possible openings after the moves given. If moves is empty or nil all openings are returned.
Possible(moves []*chess.Move) []*Opening
}
Book is an opening book that returns openings for move sequences
type BookECO ¶
type BookECO struct {
// contains filtered or unexported fields
}
BookECO represents the Encyclopedia of Chess Openings https://en.wikipedia.org/wiki/Encyclopaedia_of_Chess_Openings BookECO is safe for concurrent use.
func NewBookECO ¶
NewBookECO creates and initializes a new BookECO from the embedded ECO data. It parses the TSV data and builds the opening tree.
type Opening ¶
type Opening struct {
// contains filtered or unexported fields
}
A Opening represents a specific sequence of moves from the staring position.
Click to show internal directories.
Click to hide internal directories.
