pgn_read/core/game.py
def append_piece_move(self, match):
        """Extend to cope with ambiguity of bxc4, say, when case ignored.

        The regular expression used to generate match treats bxc4 as a bishop
        move when case is ignored.

        If the text is 'bxc4' this method forces interpretation as a pawn move,
        but delegates 'Bxc4' to the superclass version of append_piece_move.

        """
        if match.group(IFG_PIECE_CAPTURE) == PGN_CAPTURE_MOVE:
            if match.group(IFG_PIECE_MOVE) == PGN_BISHOP.lower():
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
        if match.group(IFG_PIECE_CAPTURE) == LAN_MOVE_SEPARATOR:
            if match.group(IFG_PIECE_MOVE) == PGN_BISHOP.lower():
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
            pgn_match = import_format.match(
                ''.join((match.group().split(LAN_MOVE_SEPARATOR))))
            if not pgn_match:
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
            super().append_piece_move(pgn_match)
            self._bishop_or_bpawn = None
            return
        super().append_piece_move(match)
        self._bishop_or_bpawn = None
Extend to cope with ambiguity of bxc4, say, when case ignored.

        The regular expression used to generate match treats bxc4 as a bishop
        move when case is ignored.

        If the text is 'bxc4' this method forces interpretation as a pawn move,
        but delegates 'Bxc4' to the superclass version of append_piece_move.

        
Extend to cope with ambiguity of bxc4, say, when case ignored.
The regular expression used to generate match treats bxc4 as a bishop
move when case is ignored.

If the text is 'bxc4' this method forces interpretation as a pawn move,
but delegates 'Bxc4' to the superclass version of append_piece_move.
Extend to cope with ambiguity of bxc4 say when case ignored . The regular expression used to generate match treats bxc4 as a bishop move when case is ignored . If the text is ' bxc4 ' this method forces interpretation as a pawn move but delegates ' Bxc4 ' to the superclass version of append_piece_move .
def append_piece_move(self, match):
        if match.group(IFG_PIECE_CAPTURE) == PGN_CAPTURE_MOVE:
            if match.group(IFG_PIECE_MOVE) == PGN_BISHOP.lower():
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
        if match.group(IFG_PIECE_CAPTURE) == LAN_MOVE_SEPARATOR:
            if match.group(IFG_PIECE_MOVE) == PGN_BISHOP.lower():
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
            pgn_match = import_format.match(
                ''.join((match.group().split(LAN_MOVE_SEPARATOR))))
            if not pgn_match:
                self.append_token_and_set_error(match)
                self._bishop_or_bpawn = None
                return
            super().append_piece_move(pgn_match)
            self._bishop_or_bpawn = None
            return
        super().append_piece_move(match)
        self._bishop_or_bpawn = None
def append_piece_move ( self , match ) : if match . group ( IFG_PIECE_CAPTURE ) == PGN_CAPTURE_MOVE : if match . group ( IFG_PIECE_MOVE ) == PGN_BISHOP . lower ( ) : self . append_token_and_set_error ( match ) self . _bishop_or_bpawn = None return if match . group ( IFG_PIECE_CAPTURE ) == LAN_MOVE_SEPARATOR : if match . group ( IFG_PIECE_MOVE ) == PGN_BISHOP . lower ( ) : self . append_token_and_set_error ( match ) self . _bishop_or_bpawn = None return pgn_match = import_format . match ( '' . join ( ( match . group ( ) . split ( LAN_MOVE_SEPARATOR ) ) ) ) if not pgn_match : self . append_token_and_set_error ( match ) self . _bishop_or_bpawn = None return super ( ) . append_piece_move ( pgn_match ) self . _bishop_or_bpawn = None return super ( ) . append_piece_move ( match ) self . _bishop_or_bpawn = None
Extend to cope with ambiguity of bxc4, say, when case ignored.
Extend to cope with ambiguity of bxc4 say when case ignored .
"""Extend to cope with ambiguity of bxc4, say, when case ignored.

        The regular expression used to generate match treats bxc4 as a bishop
        move when case is ignored.

        If the text is 'bxc4' this method forces interpretation as a pawn move,
        but delegates 'Bxc4' to the superclass version of append_piece_move.

        """
self
match