conways_gol/cells/living_cells_initialization.py
def toad(self) -> np.ndarray:
        """
        Method that implements a Toad oscillator.

        :return: universe with a toad at its center
        """
        grid = self.universe
        toad = [[0, 1, 1, 1],
                [1, 1, 1, 0]]
        grid[int(len(grid) / 2) - 1:int(len(grid) / 2) + 1,
            int((len(grid) - len(toad[0])) / 2):int((len(grid) - len(toad[0])) / 2) + 4] = toad
        return grid

        Method that implements a Toad oscillator.

        :return: universe with a toad at its center
        
Method that implements a Toad oscillator.
Method that implements a Toad oscillator .
def toad(self) -> np.ndarray:
        grid = self.universe
        toad = [[0, 1, 1, 1],
                [1, 1, 1, 0]]
        grid[int(len(grid) / 2) - 1:int(len(grid) / 2) + 1,
            int((len(grid) - len(toad[0])) / 2):int((len(grid) - len(toad[0])) / 2) + 4] = toad
        return grid
def toad ( self ) -> np . ndarray : grid = self . universe toad = [ [ 0 , 1 , 1 , 1 ] , [ 1 , 1 , 1 , 0 ] ] grid [ int ( len ( grid ) / 2 ) - 1 : int ( len ( grid ) / 2 ) + 1 , int ( ( len ( grid ) - len ( toad [ 0 ] ) ) / 2 ) : int ( ( len ( grid ) - len ( toad [ 0 ] ) ) / 2 ) + 4 ] = toad return grid
Method that implements a Toad oscillator.
Method that implements a Toad oscillator .
"""
        Method that implements a Toad oscillator.

        :return: universe with a toad at its center
        """
universe with a toad at its center
universe with a toad at its center
self