You are on page 1of 1

#ifndef Life_H #define Life_H #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include <string.

h> #include "Cell.h" #include <limits> #include <unistd.h> class Life { public: Life(); virtual ~Life(); void count_neighbors(); void count_neighbors(Cell* c); void next_generation(); void print_map(); void menu(); bool map_is_empty(); bool map_is_stable(); void random_map(int r, int c, float dens); void file_map(std::string nowname); void run_sim(); private: unsigned int col, row, bound, generation, run_config; float density; Cell*** now; Cell*** next; std::ofstream outf; bool stable, file_good; }; #endif

You might also like