src/GameOfLife/GameLogic.php
/**
     * Checks whether the max step is reached.
     *
     * @param Board $_board The board which is checked
     *
     * @return bool true: board is finished
     *              false: board is not finished
     */
Checks whether the max step is reached.
@param Board $_board The board which is checked

@return bool true: board is finished
false: board is not finished
Checks whether the max step is reached . @param Board $_board The board which is checked @return bool true : board is finished false : board is not finished
public function isMaxStepsReached(Board $_board): bool
    {
        if ($_board->gameStep() >= $_board->maxSteps() - 1) return true;
        else return false;
    }
public function isMaxStepsReached ( Board $ _board ) : bool { if ( $ _board -> gameStep ( ) >= $ _board -> maxSteps ( ) - 1 ) return true ; else return false ; }
Checks whether the max step is reached.
Checks whether the max step is reached .