engine

package
v0.0.0-...-1a8bede Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Search and evaluation

Index

Constants

View Source
const (
	MATE                = 1 << 20
	ORIG_HASH_CAP       = 1 << 20
	MAX_PHASE           = pieces.MAX_PHASE
	MAX_PIECE_PHASE_SUM = 24

	PV_NODE  = uint8(0)
	ALL_NODE = uint8(1)
	CUT_NODE = uint8(2)
)

Variables

View Source
var Negamax = negamax

Functions

func IterativeDeepening

func IterativeDeepening(cb *board.Board, depth int, stop ...chan bool) (int, board.Move)

Successively call negamax() with increasing depth. It is generally faster than one search to a given depth

Types

type TtEntry

type TtEntry struct {
	Hash                 uint64
	Eval                 int
	Move                 board.Move
	NodeType, Age, Depth uint8
}

Jump to

Keyboard shortcuts

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