(self, fen=None)
The potential en-passant square on the third or sixth rank.
The potential en-passant square on the third or sixth rank.
The potential en - passant square on the third or sixth rank .
def __init__(self, fen=None):
        self.ep_square = 0
        """The potential en-passant square on the third or sixth rank."""

        self.castling_rights = CASTLING
        """Bitmask of castling rights."""

        self.turn = WHITE
        """The side to move."""

        self.ply = 1
        """
        Counts full moves. Starts at `1` and is incremented after every move
        of the black side.
        """

        self.half_moves = 0
        """
        The number of half moves since the last capture or pawn move.
        """

        self.pseudo_legal_moves = PseudoLegalMoveGenerator(self)
        """
        A dynamic list of pseudo legal moves.

        Pseudo legal moves might leave or put the king in check, but are
        otherwise valid. Null moves are not pseudo legal. Castling moves are
        only included if they are completely legal.

        For performance moves are generated on the fly and only when nescessary.
        The following operations are way more efficient than just generating
        everything.

        >>> len(board.pseudo_legal_moves)
        20
        >>> bool(board.pseudo_legal_moves)
        True
        >>> move in board.pseudo_legal_moves
        True
        """

        self.legal_moves = LegalMoveGenerator(self)
        """
        A dynamic list of completely legal moves, much like the pseudo legal
        move list.
        """

        if fen is None:
            self.reset()
        else:
            self.set_fen(fen)
def __init__ ( self , fen = None ) : self . ep_square = 0 self . castling_rights = CASTLING """Bitmask of castling rights.""" self . turn = WHITE """The side to move.""" self . ply = 1 """
        Counts full moves. Starts at `1` and is incremented after every move
        of the black side.
        """ self . half_moves = 0 """
        The number of half moves since the last capture or pawn move.
        """ self . pseudo_legal_moves = PseudoLegalMoveGenerator ( self ) """
        A dynamic list of pseudo legal moves.

        Pseudo legal moves might leave or put the king in check, but are
        otherwise valid. Null moves are not pseudo legal. Castling moves are
        only included if they are completely legal.

        For performance moves are generated on the fly and only when nescessary.
        The following operations are way more efficient than just generating
        everything.

        >>> len(board.pseudo_legal_moves)
        20
        >>> bool(board.pseudo_legal_moves)
        True
        >>> move in board.pseudo_legal_moves
        True
        """ self . legal_moves = LegalMoveGenerator ( self ) """
        A dynamic list of completely legal moves, much like the pseudo legal
        move list.
        """ if fen is None : self . reset ( ) else : self . set_fen ( fen )