diff options
Diffstat (limited to 'include/zobrist.h')
| -rw-r--r-- | include/zobrist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zobrist.h b/include/zobrist.h index 5fd5ace..27053a6 100644 --- a/include/zobrist.h +++ b/include/zobrist.h @@ -19,8 +19,14 @@ #include <tak.h> #include <xorshift64.h> +#define PLY_PARITY_MAGIC 0x9E3779B97F4A7C15ULL + void zobrist_free(void); int zobrist_init(const uint8_t board_size); +// hash for whole state uint64_t zobrist_compute(tak_state_p state); + +// hash contribution from a single board cell at location l +uint64_t zobrist_cell(tak_state_p state, const uint8_t l); |
