Documentation ¶
Index ¶
Constants ¶
View Source
const MaxHalfMovesLeft = 75
Used to estimate the remaining number of moves in the game
Variables ¶
View Source
var BishopPairBonus int = 30
These are public so that they can be changed during parameter optimization
View Source
var CentralizeTable = [64]int{
0, 0, 0, 3, 3, 0, 0, 0,
0, 20, 20, 20, 20, 20, 20, 0,
0, 17, 30, 30, 30, 30, 17, 0,
3, 15, 25, 50, 50, 25, 15, 3,
3, 15, 25, 50, 50, 25, 15, 3,
0, 17, 30, 30, 30, 30, 17, 0,
0, 20, 20, 20, 20, 20, 20, 0,
0, 0, 0, 3, 3, 0, 0, 0,
}
View Source
var ConnectedRookBonus int = 16
View Source
var DefaultDrawScore int16 = 0
View Source
var DiagonalMobilityBonus int = 3
View Source
var DoubledPawnPenalty int = 6
View Source
var IsolatedPawnPenalty int = 15
View Source
var KingTableStart = [64]int{
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
2, 2, 1, 1, 1, 1, 2, 2,
5, 5, 3, 3, 3, 3, 5, 5,
10, 10, 7, 7, 7, 7, 10, 10,
20, 25, 50, 20, 25, 20, 50, 20,
}
View Source
var KnightTableStart = [64]int{
0, 1, 3, 5, 5, 3, 1, 0,
1, 7, 10, 15, 15, 10, 7, 1,
3, 10, 30, 40, 40, 30, 10, 3,
5, 15, 35, 50, 50, 35, 15, 5,
5, 15, 30, 40, 40, 30, 15, 5,
3, 10, 15, 20, 20, 15, 10, 3,
1, 7, 9, 11, 11, 9, 7, 1,
0, 1, 3, 5, 5, 3, 1, 0,
}
View Source
var OrthogonalMobilityBonus int = 6
View Source
var PassedPawnBonus int = 20
View Source
var PawnTableStart = [64]int{
0, 0, 0, 0, 0, 0, 0, 0,
45, 50, 50, 50, 50, 50, 50, 45,
20, 25, 30, 35, 35, 30, 25, 20,
10, 15, 15, 20, 20, 15, 15, 10,
3, 5, 5, 15, 15, 5, 5, 3,
2, 5, 3, 6, 6, 3, 5, 2,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
}
Functions ¶
func CountMaterial ¶
func CountMaterial(bb *dragontoothmg.Bitboards) int
This is public so it can also be used for time managment
func CountPieces ¶
func CountPieces(b *dragontoothmg.Board) int
func EstimateHalfmovesLeft ¶
func EstimateHalfmovesLeft(b *dragontoothmg.Board) int
Returns an estimate of the total number of halfmoves left in the game
func Evaluate ¶
func Evaluate(b *dragontoothmg.Board) int16
Return a static evaluation, relative to the side to move.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.