2021-11-15 08:57:27 +00:00
|
|
|
#include "tui.h"
|
2021-12-05 14:31:33 +00:00
|
|
|
#include "gui.h"
|
2021-11-15 08:57:27 +00:00
|
|
|
#include "2048.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
Game game;
|
2021-11-15 21:20:16 +00:00
|
|
|
game = game_init(4, 4);
|
2021-12-05 14:31:33 +00:00
|
|
|
/*tui_init();
|
2021-11-15 08:57:27 +00:00
|
|
|
|
|
|
|
tui_loop(&game);
|
|
|
|
|
|
|
|
tui_destroy();
|
2021-12-05 14:31:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
gui_init();
|
|
|
|
gui_loop(&game);
|
|
|
|
gui_destroy();
|
2021-11-15 08:57:27 +00:00
|
|
|
game_destroy(game);
|
|
|
|
return 0;
|
|
|
|
}
|