blob: 135fd8a5bdf3f3294f171cb07fa51047661e0be5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifndef GAME_H
#define GAME_H
struct GAME {
unsigned char* grid;
int padding;
int width;
int height;
};
int neighbors(struct GAME* game, int x, int y, unsigned char* halo_above, unsigned char* halo_below);
void next(struct GAME* game, unsigned char* halo_above, unsigned char* halo_below);
void randomize(struct GAME* game);
#endif // GAME_H
|