rumo à ia inimiga
[xYpjg3TdSw.git] / migrando / main.cpp
blob92941f966a3ea5ccee66f86e865b4a2df1ff708b
1 /* Trabalho final da disciplina de Inteligência Artificial
2 Autores: Kauê Silveira - 171671 & Bruno Fiss - 171359
3 */
5 #include "Game.h"
6 #include "Controller.h"
7 #include "Window.h"
9 #include <cstdio>
10 #include <cassert>
12 int main(int argc, char **argv)
14 Game *game = new Game();
15 Controller *controller = new Controller(game);
16 Window *window = new Window(argc, argv, controller);
17 controller->set_window(window);
18 if(argc > 1) {
19 FILE *in = fopen(argv[1], "r");
20 assert(in);
21 printf("loading from file %s...\n", argv[1]);
22 controller->load(in);
23 printf("done!\n");
25 window->main_loop();
26 return 0;