game.py
def FEN_string_board_part(self):
        """Use the data in this class to produce the part of a FEN string
        that describe the placement of the pieces."""
        def convert_to_FEN_row(row):
            FEN_row = ""
            empty_position_count = 0
            for value in row:
                if value == None:
                    empty_position_count += 1
                else:
                    if empty_position_count > 0:
                        FEN_row += str(empty_position_count)
                        empty_position_count = 0
                    FEN_row += value
            if empty_position_count > 0:
                FEN_row += str(empty_position_count)
            return FEN_row

        return "/".join([convert_to_FEN_row(self.rows[i]) for i in range(7,-1,-1)])
Use the data in this class to produce the part of a FEN string
        that describe the placement of the pieces.
Use the data in this class to produce the part of a FEN string
that describe the placement of the pieces.
Use the data in this class to produce the part of a FEN string that describe the placement of the pieces .
def FEN_string_board_part(self):
        def convert_to_FEN_row(row):
            FEN_row = ""
            empty_position_count = 0
            for value in row:
                if value == None:
                    empty_position_count += 1
                else:
                    if empty_position_count > 0:
                        FEN_row += str(empty_position_count)
                        empty_position_count = 0
                    FEN_row += value
            if empty_position_count > 0:
                FEN_row += str(empty_position_count)
            return FEN_row
        return "/".join([convert_to_FEN_row(self.rows[i]) for i in range(7,-1,-1)])
def FEN_string_board_part ( self ) : def convert_to_FEN_row ( row ) : FEN_row = "" empty_position_count = 0 for value in row : if value == None : empty_position_count += 1 else : if empty_position_count > 0 : FEN_row += str ( empty_position_count ) empty_position_count = 0 FEN_row += value if empty_position_count > 0 : FEN_row += str ( empty_position_count ) return FEN_row return "/" . join ( [ convert_to_FEN_row ( self . rows [ i ] ) for i in range ( 7 , - 1 , - 1 ) ] )
Use the data in this class to produce the part of a FEN string
that describe the placement of the pieces.
Use the data in this class to produce the part of a FEN string that describe the placement of the pieces .
"""Use the data in this class to produce the part of a FEN string
        that describe the placement of the pieces."""
self