summaryrefslogtreecommitdiff
path: root/include/engine/transposition_table.h
blob: f06ddbe4c48a8ea8c98feb3fc399079f2ccd1dd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef TRANSPOSITION_TABLE_H
#define TRANSPOSITION_TABLE_H

#include "bitboard.h"

static struct zobrist_keys {
  u64 piece[PIECE_TYPE_COUNT][64];
  u64 castle[CASTLE_COUNT];
  u64 turn[TURN_COUNT];
  u64 en_passant[64];
} zobrist_keys;

void transposition_table_init();
u64 zobrist_hash(position_t position);

#endif // TRANSPOSITION_TABLE_H