apple2048/apple2048/apple2048.c

35 lines
483 B
C

/*
* File: apple2048.c
* Author: Jeremy Rand
* Date: July 23, 2014
*
* This file contains the entry point for the 2048 game.
*/
#include "anim.h"
#include "game.h"
#include "ui.h"
int main(void)
{
initAnimations();
printInstructions();
newGame();
while (true) {
printBoard();
if (isGameWon())
gameWon();
else if (isGameLost())
gameLost();
else
handleNextEvent();
}
return 0;
}