Versions in this module Expand all Collapse all v1 v1.55.0 Jan 12, 2024 v1.50.0 Nov 23, 2022 Changes in this version + const Bishop + const BlackKingSide + const BlackQueenSide + const COLOUR_NB + const Empty + const FILE_NB + const FileA + const FileAMask + const FileB + const FileBMask + const FileC + const FileCMask + const FileD + const FileDMask + const FileE + const FileEMask + const FileF + const FileFMask + const FileG + const FileGMask + const FileH + const FileHMask + const InitialPositionFen + const King + const Knight + const MaxMoves + const MoveEmpty + const PIECE_NB + const Pawn + const Queen + const RANK_NB + const Rank1 + const Rank1Mask + const Rank2 + const Rank2Mask + const Rank3 + const Rank3Mask + const Rank4 + const Rank4Mask + const Rank5 + const Rank5Mask + const Rank6 + const Rank6Mask + const Rank7 + const Rank7Mask + const Rank8 + const Rank8Mask + const Rook + const SQUARE_NB + const SideBlack + const SideWhite + const SquareA1 + const SquareA2 + const SquareA3 + const SquareA4 + const SquareA5 + const SquareA6 + const SquareA7 + const SquareA8 + const SquareB1 + const SquareB2 + const SquareB3 + const SquareB4 + const SquareB5 + const SquareB6 + const SquareB7 + const SquareB8 + const SquareC1 + const SquareC2 + const SquareC3 + const SquareC4 + const SquareC5 + const SquareC6 + const SquareC7 + const SquareC8 + const SquareD1 + const SquareD2 + const SquareD3 + const SquareD4 + const SquareD5 + const SquareD6 + const SquareD7 + const SquareD8 + const SquareE1 + const SquareE2 + const SquareE3 + const SquareE4 + const SquareE5 + const SquareE6 + const SquareE7 + const SquareE8 + const SquareF1 + const SquareF2 + const SquareF3 + const SquareF4 + const SquareF5 + const SquareF6 + const SquareF7 + const SquareF8 + const SquareG1 + const SquareG2 + const SquareG3 + const SquareG4 + const SquareG5 + const SquareG6 + const SquareG7 + const SquareG8 + const SquareH1 + const SquareH2 + const SquareH3 + const SquareH4 + const SquareH5 + const SquareH6 + const SquareH7 + const SquareH8 + const SquareNone + const WhiteKingSide + const WhiteQueenSide + var FileMask = [8]uint64 + var KingAttacks [64]uint64 + var KnightAttacks [64]uint64 + var SquareMask [64]uint64 + func AbsDelta(x, y int) int + func AllBlackPawnAttacks(b uint64) uint64 + func AllWhitePawnAttacks(b uint64) uint64 + func BishopAttacks(from int, occ uint64) uint64 + func BitboardString(b uint64) string + func Down(b uint64) uint64 + func DownFill(gen uint64) uint64 + func DownLeft(b uint64) uint64 + func DownRight(b uint64) uint64 + func File(sq int) int + func FileDistance(sq1, sq2 int) int + func FileFill(gen uint64) uint64 + func FirstOne(b uint64) int + func FlipSquare(sq int) int + func IsDarkSquare(sq int) bool + func Left(b uint64) uint64 + func MakeSquare(file, rank int) int + func Max(l, r int) int + func Min(l, r int) int + func MoreThanOne(value uint64) bool + func ParseSquare(s string) int + func PawnAttacks(from int, side bool) uint64 + func PawnAttacksNew(side, from int) uint64 + func PopCount(b uint64) int + func QueenAttacks(from int, occ uint64) uint64 + func Rank(sq int) int + func RankDistance(sq1, sq2 int) int + func Right(b uint64) uint64 + func RookAttacks(from int, occ uint64) uint64 + func SquareDistance(sq1, sq2 int) int + func SquareName(sq int) string + func Up(b uint64) uint64 + func UpFill(gen uint64) uint64 + func UpLeft(b uint64) uint64 + func UpRight(b uint64) uint64 + type LimitsType struct + BlackIncrement int + BlackTime int + Depth int + Infinite bool + Mate int + MoveTime int + MovesToGo int + Nodes int + Ponder bool + WhiteIncrement int + WhiteTime int + type Move int32 + func ParseMoveSAN(pos *Position, san string) Move + func (m Move) CapturedPiece() int + func (m Move) From() int + func (m Move) MovingPiece() int + func (m Move) Promotion() int + func (m Move) String() string + func (m Move) To() int + type OrderedMove struct + Key int32 + Move Move + type Position struct + Bishops uint64 + Black uint64 + CastleRights int + Checkers uint64 + EpSquare int + Key uint64 + Kings uint64 + Knights uint64 + LastMove Move + Pawns uint64 + Queens uint64 + Rooks uint64 + Rule50 int + White uint64 + WhiteMove bool + func MirrorPosition(p *Position) Position + func NewPositionFromFEN(fen string) (Position, error) + func (p *Position) AllPieces() uint64 + func (p *Position) Colours(side int) uint64 + func (p *Position) GenerateCaptures(ml []OrderedMove) []OrderedMove + func (p *Position) GenerateLegalMoves() []Move + func (p *Position) GenerateMoves(ml []OrderedMove) []OrderedMove + func (p *Position) GetPieceTypeAndSide(sq int) (pieceType int, side bool) + func (p *Position) IsCheck() bool + func (p *Position) IsRepetition(other *Position) bool + func (p *Position) KingSq(side bool) int + func (p *Position) MakeMoveLAN(lan string) (Position, bool) + func (p *Position) PiecesByColor(side bool) uint64 + func (p *Position) String() string + func (p *Position) WhatPiece(sq int) int + func (src *Position) MakeMove(move Move, result *Position) bool + func (src *Position) MakeNullMove(result *Position) + type SearchInfo struct + Depth int + MainLine []Move + Nodes int64 + Score UciScore + Time time.Duration + type SearchParams struct + Limits LimitsType + Positions []Position + Progress func(si SearchInfo) + type UciScore struct + Centipawns int + Mate int