pgn_read/core/game.py
def append_game_termination(self, match):
        """Append game termination token to game score and update game state.

        Put game in error state if no moves exists in game score and the
        initial position is not valid.  Validation includes piece counts and
        some piece placement: pawns on ranks 2 to 7 only and king of active
        color not in check for example.  Verification that the initial position
        declared in a PGN FEN tag is reachable from the standard starting
        position is not attempted.

        """
        if self._movetext_offset is None:
            if not self.set_initial_position():
                self.append_token_and_set_error(match)
                return
            self._movetext_offset = len(self._text)
        self._text.append(match.group())
        self.add_board_state_none(None)
Append game termination token to game score and update game state.

        Put game in error state if no moves exists in game score and the
        initial position is not valid.  Validation includes piece counts and
        some piece placement: pawns on ranks 2 to 7 only and king of active
        color not in check for example.  Verification that the initial position
        declared in a PGN FEN tag is reachable from the standard starting
        position is not attempted.

        
Append game termination token to game score and update game state.
Put game in error state if no moves exists in game score and the
initial position is not valid.  Validation includes piece counts and
some piece placement: pawns on ranks 2 to 7 only and king of active
color not in check for example.  Verification that the initial position
declared in a PGN FEN tag is reachable from the standard starting
position is not attempted.
Append game termination token to game score and update game state . Put game in error state if no moves exists in game score and the initial position is not valid . Validation includes piece counts and some piece placement : pawns on ranks 2 to 7 only and king of active color not in check for example . Verification that the initial position declared in a PGN FEN tag is reachable from the standard starting position is not attempted .
def append_game_termination(self, match):
        if self._movetext_offset is None:
            if not self.set_initial_position():
                self.append_token_and_set_error(match)
                return
            self._movetext_offset = len(self._text)
        self._text.append(match.group())
        self.add_board_state_none(None)
def append_game_termination ( self , match ) : if self . _movetext_offset is None : if not self . set_initial_position ( ) : self . append_token_and_set_error ( match ) return self . _movetext_offset = len ( self . _text ) self . _text . append ( match . group ( ) ) self . add_board_state_none ( None )
Append game termination token to game score and update game state.
Append game termination token to game score and update game state .
"""Append game termination token to game score and update game state.

        Put game in error state if no moves exists in game score and the
        initial position is not valid.  Validation includes piece counts and
        some piece placement: pawns on ranks 2 to 7 only and king of active
        color not in check for example.  Verification that the initial position
        declared in a PGN FEN tag is reachable from the standard starting
        position is not attempted.

        """
self
match