-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
38 lines (34 loc) · 841 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
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
//Insert variable declarations here:
#include "variables.h"
//Insert function signatures here:
#include "signatures.h"
//special character handling
#include "fancyfont.c"
//and include function files themselves:
#include "dummy.c"
//system functions
#include "system.c"
//main menu (new game,..)
#include "mainMenu.c"
//shows and updates highscores
#include "hallofshame.c"
//game-board logic (create, delete, setter, getter)
#include "board.c"
//gameflow itself (drawboard, drawcoins, input)
#include "gamefunction.c"
//shows gamerules
#include "rules.c"
//shows credits
#include "credits.c"
int main(int argc, char *argv[])
{
FANCY_FONT = (argc>=2 && strcmp(argv[1],"FANCY")==0);
#ifdef DEBUG
FANCY_FONT = 0;
#endif // DEBUG
setFancy(FANCY_FONT);
return mainMenu();
}