main
1#include "cell.h"
2
3typedef struct {
4 int width;
5 int height;
6 Cell* cells;
7} World;
8
9typedef void (*each_cell)(Cell *cell);
10
11World* world_create(int width, int height);
12World* world_random(int width, int height);
13World* world_evolve(World* world);
14Cell* world_cell_at(World *world, int index);
15int world_number_of_cells(World *world);
16int world_neighbours(World *world, int index);
17void world_print(World *world);
18void world_destroy(World *world);