diff options
Diffstat (limited to 'src/2048.h')
-rw-r--r-- | src/2048.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/2048.h b/src/2048.h new file mode 100644 index 0000000..9b19f64 --- /dev/null +++ b/src/2048.h @@ -0,0 +1,17 @@ +#define SIZE 4 + +int move(int direction, int board[SIZE][SIZE]); + +void init(int board[SIZE][SIZE]); + +void add2(int board[SIZE][SIZE]); + +void rotate(int board[SIZE][SIZE]); + +int slideLeft(int board[SIZE][SIZE]); +int slideRight(int board[SIZE][SIZE]); +int slideUp(int board[SIZE][SIZE]); +int slideDown(int board[SIZE][SIZE]); +int gameover(int board[SIZE][SIZE]); + +int push(int array[SIZE]); |