| 12345678910111213141516171819202122232425 |
- //
- // sim.h
- // Life
- //
- // Created by Benoit Sida on 2014-06-13.
- // Copyright (c) 2014 Benoit Sida. All rights reserved.
- //
-
- #ifndef Life_sim_h
- #define Life_sim_h
-
- void sim(SDL_Window *ecran, SDL_Surface *screen, int cycles);
-
- enum {CELL, ALIVE, DEAD};
-
- typedef struct Cell Cell;
- struct Cell
- {
- int x;
- int y;
- int type;
- int voisines;
- };
-
- #endif
|