Documentation ¶
Overview ¶
Package searchctl contains search functionality and utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handle ¶
Handle is an interface for the engine to manage searches. The engine is expected to spin off searches with forked boards and close/abandon them when no longer needed. This design keeps stopping conditions and re-synchronization trivial.
type Launcher ¶
type Launcher interface { // Launch a new search from the given position. It expects an exclusive (forked) board and // returns a PV channel for iteratively deeper searches. If the search is exhausted, the // channel is closed. The search can be stopped at any time. Launch(ctx context.Context, b *board.Board, tt search.TranspositionTable, noise eval.Random, opt Options) (Handle, <-chan search.PV) }
Launcher is an interface for managing searches.
type Options ¶
type Options struct { // DepthLimit, if set, limits the search to the given ply depth. Zero means no limit. DepthLimit lang.Optional[uint] // TimeControl, if set, limits the search to the given time parameters. TimeControl lang.Optional[TimeControl] }
Options hold dynamic search options. The user may change these on a particular search.
type TimeControl ¶
TimeControl represents time control information.
func (TimeControl) Limits ¶
Limits returns a soft and hard limit for making move with the given color. The interpretation is that after the soft limit, no new search should be conducted.
func (TimeControl) String ¶
func (t TimeControl) String() string
Click to show internal directories.
Click to hide internal directories.