]> git.friedersdorff.com Git - max/gol.git/blobdiff - array.h
First working implementation
[max/gol.git] / array.h
diff --git a/array.h b/array.h
index 42c5415b24337d219e9da0d9d9c9fb40b8402b58..dad89ba3c9bcdd88aa82ab33efb836436d027dc9 100644 (file)
--- a/array.h
+++ b/array.h
@@ -14,12 +14,16 @@ struct gol_board {
        int_least32_t *live_cells;
        uint_least32_t n;
        uint_least32_t size;
+       int_least32_t max_x;
+       int_least32_t min_x;
+       int_least32_t max_y;
+       int_least32_t min_y;
 };
 
 /*
  * Check that a cell located at (x,y) in the game board is live.
  */
-int gol_is_live(struct gol_board *state, int_least32_t x, int_least32_t y);
+int gol_is_live(struct gol_board *state, int_least32_t x, int_least32_t y, char *is_live);
 
 /*
  * Append the coordinates of the live cell to the array.