summaryrefslogtreecommitdiff
path: root/include/tak.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tak.h')
-rw-r--r--include/tak.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/tak.h b/include/tak.h
deleted file mode 100644
index c7135ab..0000000
--- a/include/tak.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdlib.h>
-#include <stdint.h>
-
-static uint8_t board_size = 5;
-
-typedef uint16_t colour_stack_t;
-typedef uint8_t data_t;
-
-enum COLOUR { C_WHITE, C_BLACK };
-enum STONE_VARIANT { STONE_FLAT, STONE_STANDING, STONE_CAPSTONE };
-enum MOVE_DIRECTION { M_UP, M_DOWN, M_LEFT, M_RIGHT };
-enum ACTION_RESULT { A_OK, A_ILLEGAL, A_OVERFLOW };
-enum WIN_RESULT { W_NONE, W_ROAD_WHITE, W_ROAD_BLACK, W_FLAT_WHITE, W_FLAT_BLACK };
-
-static colour_stack_t *colours = 0;
-static data_t *celldat = 0;
-static uint8_t white_flats, black_flats, white_caps, black_caps, turn;
-
-uint8_t init_game(void);
-void reset_game(void);
-void free_game(void);
-
-enum ACTION_RESULT
-try_place(const int8_t location, const enum COLOUR colour,
- const enum STONE_VARIANT stone);
-
-enum ACTION_RESULT
-try_move(const int8_t location, const enum MOVE_DIRECTION direction,
- const uint8_t steps, const uint8_t * const drops);
-
-enum WIN_RESULT
-check_win(const enum COLOUR colour);