//
// Created by fabian on 11.01.22.
//
#include "common.h"

#define TOTAL_TABLE_SIZE 1000000
#define NUM_ENTRIES TOTAL_TABLE_SIZE / sizeof(Entry)


typedef struct entry {
    long hash;
    int depth;
    long value;
    short stored;
} Entry;

long get_hash_index(long hash);
long get_hash(Boardstate *b);

void bestmove(int depth, Boardstate *b, long *vp, long *bestx, long *besty, long alpha, long beta);
long value1(Boardstate *b, char player);
long value(Boardstate *b, char player, int depth);
void deleteboard(Boardstate *b);
Boardstate *copyboard(Boardstate *b);