API Reference#
- chessengine.bitboard
Board
Board.__eq__()
Board.__hash__()
Board.__init__()
Board.__repr__()
Board.__str__()
Board.__weakref__
Board.alpha_beta_search()
Board.board
Board.board_pieces
Board.copy()
Board.evaluate_score()
Board.get_bitboard()
Board.get_moves()
Board.get_self_piece_bitboard()
Board.get_side_bitboard()
Board.handle_player_move()
Board.identify_piece_at()
Board.make_moves()
Board.move()
Board.move_raw()
Board.move_san()
Board.opponent_pieces
Board.play()
Board.play_pvp()
Board.search_forward()
Board.set_bitboard()
Board.undo_move()
- chessengine.exceptions
- chessengine.lookup_tables
- chessengine.moves
get_bishop_moves()
get_black_bishop_moves()
get_black_king_moves()
get_black_knight_moves()
get_black_pawn_moves()
get_black_queen_moves()
get_black_rook_moves()
get_king_moves()
get_knight_moves()
get_rook_moves()
get_white_bishop_moves()
get_white_king_moves()
get_white_knight_moves()
get_white_pawn_moves()
get_white_queen_moves()
get_white_rook_moves()
- chessengine.utils
- chessengine.pgn.node
- chessengine.pgn.parser
Summary#
A complete bitboard representation of a chessboard, with all the methods needed to play a game of chess. |
|
Global exceptions for the engine |
|
The lookup tables module provides mappings between different position representation formats, as well as utility bitboards that let you mask or clear individual ranks, files, or positions on the chess board. |
|
|
Functions for generating moves for all supported pieces in all supported scenarios |
|
Utility functions for common bitboard operations. |
|
Defines the Game and GameNode class, used to parse PGN files and create the opening book. |
|
The PGN parser class |