eleven/eleven.h

22 lines
286 B
C

#include <stdint.h>
#define SIZE 4
typedef uint8_t U8;
typedef uint32_t U32;
typedef U8 (*pTiles)[SIZE][SIZE];
enum {
DOWN, //0
UP, //1
LEFT, //2
RIGHT,
MOVES
};
void init(U8* tiles);
U32 move(U8* tiles, int way);
U32 moverot(U8* tiles, int way);