seagull/board.py
def add(self, lifeform: Lifeform, loc: Tuple[int, int]):
        """Add a lifeform to the board

        Parameters
        ----------
        lifeform: :obj:`seagull.lifeforms.base.Lifeform`
            A lifeform that can evolve in the board
        loc : array_like of size 2
            Initial location of the lifeform on the board
        """
        try:
            row, col = loc
            height, width = lifeform.size
            self.state[row : row + height, col : col + width] = lifeform.layout
        except ValueError:
            logger.error("Lifeform is out-of-bounds!")
            raise
Add a lifeform to the board

        Parameters
        ----------
        lifeform: :obj:`seagull.lifeforms.base.Lifeform`
            A lifeform that can evolve in the board
        loc : array_like of size 2
            Initial location of the lifeform on the board
        
Add a lifeform to the board
Parameters

:obj:`seagull.lifeforms.base.Lifeform`
A lifeform that can evolve in the board
loc : array_like of size 2
Initial location of the lifeform on the board
Add a lifeform to the board Parameters : obj : ` seagull . lifeforms . base . Lifeform ` A lifeform that can evolve in the board loc : array_like of size 2 Initial location of the lifeform on the board
def add(self, lifeform: Lifeform, loc: Tuple[int, int]):
        try:
            row, col = loc
            height, width = lifeform.size
            self.state[row : row + height, col : col + width] = lifeform.layout
        except ValueError:
            logger.error("Lifeform is out-of-bounds!")
            raise
def add ( self , lifeform : Lifeform , loc : Tuple [ int , int ] ) : try : row , col = loc height , width = lifeform . size self . state [ row : row + height , col : col + width ] = lifeform . layout except ValueError : logger . error ( "Lifeform is out-of-bounds!" ) raise
Add a lifeform to the board
Parameters
Add a lifeform to the board Parameters
"""Add a lifeform to the board

        Parameters
        ----------
        lifeform: :obj:`seagull.lifeforms.base.Lifeform`
            A lifeform that can evolve in the board
        loc : array_like of size 2
            Initial location of the lifeform on the board
        """
self
lifeform
Lifeform
loc
Tuple[int, int]