chessengine.moves#
- chessengine.moves.get_bishop_moves(board, side: str, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a bishop of side=side can reach starting at position
- Parameters:
board – A chessengine.bitboard.Board object
side (str) – The side of the bishop. “white” or “black”
position (int) – The position the bishop starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_bishop_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black bishop starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the bishop starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_king_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black king starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the king starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_knight_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black knight starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the knight starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_pawn_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black pawn starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the pawn starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_queen_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black queen starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the queen starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_black_rook_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a black rook starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the rook starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_king_moves(board, side: str, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a king starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
side (str) – The side of the king. “white” or “black”.
position (int) – The position the king starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_knight_moves(board, side: str, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a knight starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
side (str) – The side of the knight. “white” or “black”
position (int) – The position the knight starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_rook_moves(board, side: str, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a rook of side=side can reach starting at position
- Parameters:
board – A chessengine.bitboard.Board object
side (str) – The side of the rook. Either “white” or “black”
position (int) – The position the rook starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_bishop_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white bishop starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the bishop starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_king_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white king starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the king starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_knight_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white knight starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the knight starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_pawn_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white pawn starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the pawn starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_queen_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white queen starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the queen starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]
- chessengine.moves.get_white_rook_moves(board, position: int) list[tuple[int, int, int]] #
Returns a list of end positions a white rook starting at position can reach
- Parameters:
board – A chessengine.bitboard.Board object
position (int) – The position the rook starts on. See Representing Positions On The Board
- Return type:
list[tuple[int, int, int]]