summaryrefslogtreecommitdiff
path: root/include/tak.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-28 20:56:46 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitfd22e4cf3198c1e63cf26dd5fdce588a1e969ac1 (patch)
tree363215345250b1f0aa223ce97671589fa2837a0f /include/tak.h
parentf706a6a0546400cb6a1925f25dc010ffce2afd49 (diff)
Started on PTN stuff
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);