Migrated handling of grid and game to game.(c/h).

This commit is contained in:
Sheldon Lee
2020-06-24 14:27:24 +01:00
parent 1ad1660736
commit 50eeaa8f0a
5 changed files with 98 additions and 59 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ typedef struct Grid {
bool* next_state;
} Grid;
void initGrid(Grid* grid, unsigned int width, unsigned int height);
Grid* initGrid(unsigned int width, unsigned int height);
void randomizeGrid(Grid* grid);
@@ -22,7 +22,7 @@ void clearGrid(Grid* grid);
void updateGrid(Grid* grid);
void putPixel(Grid* grid, int x, int y);
void setPixel(Grid* grid, int x, int y, bool on);
void drawGrid(Grid* grid);