X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=array.h;h=dad89ba3c9bcdd88aa82ab33efb836436d027dc9;hb=refs%2Fheads%2Fmaster;hp=42c5415b24337d219e9da0d9d9c9fb40b8402b58;hpb=5f726a561fd7af82643b30410cbd7e23b5458ea7;p=max%2Fgol.git diff --git a/array.h b/array.h index 42c5415..dad89ba 100644 --- 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.