aboutsummaryrefslogtreecommitdiff
path: root/include/tt_treap.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-26 17:42:53 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitde4f20f28afe23ecfc546ad242e5bb44710996cc (patch)
tree32cd0cf0757327cee4ee4d4631920284d54816f3 /include/tt_treap.h
parentd45db690ce92cb2c847175cfd9ac497f3dd40cea (diff)
Storing best moves!
Diffstat (limited to 'include/tt_treap.h')
-rw-r--r--include/tt_treap.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/tt_treap.h b/include/tt_treap.h
index 1a15e1b..3991e79 100644
--- a/include/tt_treap.h
+++ b/include/tt_treap.h
@@ -1,10 +1,11 @@
+#ifndef TT_TREAP_H
+#define TT_TREAP_H
+
#include <stdlib.h>
#include <stdint.h>
-#include <action_list.h>
-#include <xorshift64.h>
-#ifndef TT_TREAP_H
-#define TT_TREAP_H
+#include <actions.h>
+#include <xorshift64.h>
// ===================================================================
// Types
@@ -19,7 +20,7 @@ typedef struct treap_node_s {
enum TT_FLAG flag;
uint8_t depth;
float value;
- action_node_t *action;
+ action_t action;
} tt_entry_t;
// ===================================================================
@@ -38,7 +39,7 @@ void tt_free(void);
tt_entry_t *tt_seek(uint64_t key);
int tt_insert(const uint64_t key, const enum TT_FLAG flag,
- const uint8_t depth, const float value);
- // const action_node_t* action);
+ const uint8_t depth, const float value,
+ const action_t action);
#endif