src/conway.c
bool conway_is_null(conway_t *conway)
{
    int i, j;

    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            if (conway->universe[i][j].alive) {
                return false;
            }
        }
    }

    return true;
}
/* Checks if there's no life in a Conway's board */
Checks if there's no life in a Conway's board
Checks if there ' s no life in a Conway ' s board
bool conway_is_null(conway_t *conway)
{
    int i, j;
    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            if (conway->universe[i][j].alive) {
                return false;
            }
        }
    }
    return true;
}
bool conway_is_null ( conway_t * conway ) { int i , j ; for ( i = 0 ; i < conway -> num_rows ; ++ i ) { for ( j = 0 ; j < conway -> num_cols ; ++ j ) { if ( conway -> universe [ i ] [ j ] . alive ) { return false ; } } } return true ; }
Checks if there's no life in a Conway's board
Checks if there ' s no life in a Conway ' s board