heuristicas começando a implementar ...
[xYpjg3TdSw.git] / main.cpp
blobcbfe01659d8812ca9777aaec36a41062e925d14e
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 <stdlib.h>
11 #include <cassert>
13 int main(int argc, char **argv)
15 Game *game = new Game();
16 Controller *controller = new Controller(game);
17 Window *window = new Window(argc, argv, controller);
18 controller->set_window(window);
19 if(argc > 1) {
20 FILE *in = fopen(argv[1], "r");
21 assert(in);
22 printf("loading from file %s...\n", argv[1]);
23 controller->load(in);
24 printf("done!\n");
26 window->main_loop();
27 return 0;