-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
49 lines (39 loc) · 811 Bytes
/
main.c
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
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <stdio.h>
#include <stdlib.h>
int p = -1;
int main() {
labinit();
reset_display();
while(p != 8) {
switch(p) {
case -1: /*Showing title of game*/
p = title_phase();
break;
case 0: //player n select phase
p = player_select_phase();
break;
case 1: //Game setup
p = game_setup();
break;
case 2: //Player reveal phase
p = player_reveal_phase();
break;
case 3: //Talking phase
p = talking_phase();
break;
case 4: //selection phase
p = selection_phase();
break;
case 5: //Voting phase
p = voting_phase();
break;
case 6: //Mission phase
p = mission_phase();
break;
case 7: //End phase
p = end();
break;
}
}
return 0;
}