Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CastlingRights ¶
type CastlingRights []ColorSide
CastlingRights is a slice of color sides available for castling.
type ColorSide ¶
type ColorSide uint8
ColorSide represents chess board's queen and king sides for each color.
func NewColorSideFromFEN ¶
NewColorSideFromFEN parses FEN to corresponding ColorSide.
FEN argument examples: "k", "q", "K", "Q".
type Position ¶
type Position struct {
// contains filtered or unexported fields
}
Position represents the state of the game at a certain point in time.
func NewPosition ¶
func NewPosition( board *Board, activeColor Color, castlingRights CastlingRights, enPassantSquare Square, halfMoveClock uint8, fullMoveNumber uint16, ) *Position
NewPosition creates a new position with passed parameters.
func NewPositionFromFEN ¶
NewPositionFromFEN parses FEN to the Position structure.
FEN argument example: "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1".
func NewPositionStart ¶
NewPositionStart creates game start position.
Click to show internal directories.
Click to hide internal directories.