gol/mpi/include/game.h
Logan Hunt 253b267f1c MPI
2021-12-06 21:44:51 -07:00

20 lines
413 B
C

#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