Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EgTables = [6][64]int{pawnEG, knightEG, bishopEG, rookEG, queenEG, kingEG}
View Source
var MgTables = [6][64]int{pawnMG, knightMG, bishopMG, rookMG, queenMG, kingMG}
Functions ¶
func RestorePosition ¶
Types ¶
type Board ¶
type Board struct { // TODO: move occupancies into one array? Possible memory speed boost // White to move. 1=true, 0=false. Use uint because bools cannot be xor'd WToMove uint Zobrist uint64 Pieces [2]uint64 Pawns [2]uint64 Knights [2]uint64 Bishops [2]uint64 Rooks [2]uint64 Queens [2]uint64 Kings [2]uint64 KingSqs [2]int8 CastleRights [2][2]bool // [b, w][queenside, kingside] EpSquare int8 PrevMove Move HalfMoves uint8 EvalMaterial int PiecePhaseSum int EvalMidGamePST int // piece-square tables (PST) EvalEndGamePST int }
type Position ¶
type Position struct { WToMove uint Zobrist uint64 Pieces [2]uint64 Pawns [2]uint64 Knights [2]uint64 Bishops [2]uint64 Rooks [2]uint64 Queens [2]uint64 Kings [2]uint64 KingSqs [2]int8 CastleRights [2][2]bool EpSquare int8 PrevMove Move HalfMoves uint8 EvalMaterial int PiecePhaseSum int EvalMidGamePST int EvalEndGamePST int }
func StorePosition ¶
Click to show internal directories.
Click to hide internal directories.