-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
36 lines (24 loc) · 744 Bytes
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _GUARD_g
#define _GUARD_g
#include "Load_store.h"
#include <stdio.h>
#include "utility.h"
#include <stdbool.h>
//function to create the world
//return the world pointer if the world created correctly
int **create();
//game evolve to the terminal
//return 1 if the world is not end when exit
//return 0 when the world is end
int run_terminal(int**cells);
//input world to evolve for input steps
//return 1 if the world is not end when exit
//return 0 when the world is end
int run_step(int **cells,int y);
//function of whole process of a world's evolution
//return 1 if the world is not end when exit
//return 0 when the world is end
int game(int ** cell);
//The whole game system
void whole_game(char * filename);
#endif