project/grid.py
def reset(self, surface):
        """
        Clears entire field to all dead cells
        """
        for x in range(self.rows):
            for y in range(self.columns):
                x_pos, y_pos = x * self.scale, y * self.scale
                self.curr_array[x][y] = -1  # initial field array to all empty (-1)
                pygame.draw.rect(surface, (255, 255, 255),
                                 [x_pos, y_pos, self.scale - self.border, self.scale - self.border])

        Clears entire field to all dead cells
        
Clears entire field to all dead cells
Clears entire field to all dead cells
def reset(self, surface):
        for x in range(self.rows):
            for y in range(self.columns):
                x_pos, y_pos = x * self.scale, y * self.scale
                self.curr_array[x][y] = -1  
                pygame.draw.rect(surface, (255, 255, 255),
                                 [x_pos, y_pos, self.scale - self.border, self.scale - self.border])
def reset ( self , surface ) : for x in range ( self . rows ) : for y in range ( self . columns ) : x_pos , y_pos = x * self . scale , y * self . scale self . curr_array [ x ] [ y ] = - 1 pygame . draw . rect ( surface , ( 255 , 255 , 255 ) , [ x_pos , y_pos , self . scale - self . border , self . scale - self . border ] )
Clears entire field to all dead cells
Clears entire field to all dead cells
"""
        Clears entire field to all dead cells
        """ # initial field array to all empty (-1)
self
surface