Can someone help me write Conway’s Game of Life in c usingSDL.
gl.c file///////////////////////
#include <stdlib.h>
#include “SDL2/SDL.h”
#include “sdl.h”
#include “life.h”
int main(int argc, char *argv[])
{
int width = 800;
int height = 600;
int sprite_size = 4; /* either 2, 4, 8, or 16 */
int m = -66;
int n = -10;
/* colors are RGB model valid values [0, 255] */
unsigned char red = 140;
unsigned char green = 145;
unsigned char blue = 250;
struct sdl_info_t sdl_info; /* this is needed to graphicallydisplay the
OR
OR