-
Notifications
You must be signed in to change notification settings - Fork 1
/
interfaces.go
33 lines (30 loc) · 921 Bytes
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package chessEngine
type Evaluator interface {
EvaluatePosition(position *Position) int16
GetMiddleGamePieceSquareTable() *[6][64]int16
GetEndGamePieceSquareTable() *[6][64]int16
GetMiddleGamePieceValues() *[6]int16
GetEndGamePieceValues() *[6]int16
GetPhaseValues() *[6]int16
GetTotalPhaseWeight() int16
}
type EngineOption struct {
optionType string
defaultValue string
minValue string
maxValue string
fixedValues []string
setOption func(optionValue string)
}
type GameSearcher interface {
Reset(evaluator Evaluator)
ResetToNewGame()
GetOptions() map[string]EngineOption
Position() *Position
RecordPositionHash(positionHash uint64)
InitializeSearchInfo(fenString string, evaluator Evaluator)
InitializeTimeManager(remainingTime int64, increment int64, moveTime int64, movesToGo int16, depth uint8, nodeCount uint64)
StartSearch(evaluator Evaluator) Move
StopSearch()
CleanUp()
}