diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-26 17:42:53 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | de4f20f28afe23ecfc546ad242e5bb44710996cc (patch) | |
| tree | 32cd0cf0757327cee4ee4d4631920284d54816f3 /include/action_list.h | |
| parent | d45db690ce92cb2c847175cfd9ac497f3dd40cea (diff) | |
Storing best moves!
Diffstat (limited to 'include/action_list.h')
| -rw-r--r-- | include/action_list.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/action_list.h b/include/action_list.h deleted file mode 100644 index b6fd13a..0000000 --- a/include/action_list.h +++ /dev/null @@ -1,34 +0,0 @@ -#include <stdlib.h> -#include <stdint.h> - -#include <tak.h> - -#ifndef ACTION_LIST_H -#define ACTION_LIST_H - -enum A_TYPE { A_PLACE, A_MOVE }; - -typedef struct action_node_s { - struct action_node_s *next; - enum A_TYPE type; - int8_t loc; - uint8_t data0; - uint8_t data1; -} action_node_t; - -typedef struct action_list_s { - struct action_node_s *head, *tail; - uint32_t length; -} action_list_t; - -void action_list_init(void); -void action_list_free(action_list_t *list); -action_list_t *action_list_generate(void); -action_node_t *action_copy(const action_node_t* action); - -void action_take(action_node_t *action); -void action_undo(action_node_t *action); - -void action_to_ptn(action_node_t* action, char* out_ptn); - -#endif |
