pgn_read/core/game.py
def movetext_collation_value(self):
        """Return movetext converted to sort in collation order.

        1. e4 is before 1... e4 in collation order but self._text normally will
        not have the move number indications.  If sorting gets into movetext it
        is possible the ordering implemented in this method will differ from
        the ordering implied by the PGN specification when move sufficies are
        present.

        """
        if TAG_FEN in self._tags:
            fen = self._tags[TAG_FEN].split()
            move_number = int(fen[FEN_FULLMOVE_NUMBER_FIELD_INDEX])
            inactive_color = OTHER_SIDE[fen[FEN_ACTIVE_COLOR_FIELD_INDEX]]
        else:
            move_number = 1
            inactive_color = FEN_BLACK_ACTIVE
        if self._movetext_offset:
            movetext = self._text[self._movetext_offset:]
        else:
            movetext = self._text[:]
        return move_number, inactive_color, movetext
Return movetext converted to sort in collation order.

        1. e4 is before 1... e4 in collation order but self._text normally will
        not have the move number indications.  If sorting gets into movetext it
        is possible the ordering implemented in this method will differ from
        the ordering implied by the PGN specification when move sufficies are
        present.

        
Return movetext converted to sort in collation order.
1. e4 is before 1... e4 in collation order but self._text normally will
not have the move number indications.  If sorting gets into movetext it
is possible the ordering implemented in this method will differ from
the ordering implied by the PGN specification when move sufficies are
present.
Return movetext converted to sort in collation order . 1 . e4 is before 1 ... e4 in collation order but self . _text normally will not have the move number indications . If sorting gets into movetext it is possible the ordering implemented in this method will differ from the ordering implied by the PGN specification when move sufficies are present .
def movetext_collation_value(self):
        if TAG_FEN in self._tags:
            fen = self._tags[TAG_FEN].split()
            move_number = int(fen[FEN_FULLMOVE_NUMBER_FIELD_INDEX])
            inactive_color = OTHER_SIDE[fen[FEN_ACTIVE_COLOR_FIELD_INDEX]]
        else:
            move_number = 1
            inactive_color = FEN_BLACK_ACTIVE
        if self._movetext_offset:
            movetext = self._text[self._movetext_offset:]
        else:
            movetext = self._text[:]
        return move_number, inactive_color, movetext
def movetext_collation_value ( self ) : if TAG_FEN in self . _tags : fen = self . _tags [ TAG_FEN ] . split ( ) move_number = int ( fen [ FEN_FULLMOVE_NUMBER_FIELD_INDEX ] ) inactive_color = OTHER_SIDE [ fen [ FEN_ACTIVE_COLOR_FIELD_INDEX ] ] else : move_number = 1 inactive_color = FEN_BLACK_ACTIVE if self . _movetext_offset : movetext = self . _text [ self . _movetext_offset : ] else : movetext = self . _text [ : ] return move_number , inactive_color , movetext
Return movetext converted to sort in collation order.
Return movetext converted to sort in collation order .
"""Return movetext converted to sort in collation order.

        1. e4 is before 1... e4 in collation order but self._text normally will
        not have the move number indications.  If sorting gets into movetext it
        is possible the ordering implemented in this method will differ from
        the ordering implied by the PGN specification when move sufficies are
        present.

        """
self