summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-08-31 17:21:08 +0300
committereug-vs <eugene@eug-vs.xyz>2022-08-31 17:21:08 +0300
commit43ce3c7deb85363102d810bf8478982c956cd0fe (patch)
treeeefe184493de0d49169d76ed2400649fae20014b /src/structs.h
parentbc42b0b1746bc316c8e63b42c64bcf17a1ac011f (diff)
downloadc-chess-43ce3c7deb85363102d810bf8478982c956cd0fe.tar.gz
feat: only recalculate higher-depth transpositions
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 643e7f2..5a60ba9 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4,3 +4,8 @@ typedef struct {
int value; // Estimated move value
} Move;
+typedef struct {
+ int value; // Estimated position value
+ int depth; // Depth -1 indicates it has not been evaluated yet
+} Transposition;
+