CPW-Engine transposition h

From Chessprogramming wiki
Revision as of 16:03, 18 December 2018 by GerdIsenberg (talk | contribs) (Created page with "'''Home * Engines * CPW-Engine * Transposition Header''' <pre> struct szobrist { U64 piecesquare[6][2][128]; U64 color; U64 castling[16]; U64 ep...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Home * Engines * CPW-Engine * Transposition Header

struct szobrist {
  U64 piecesquare[6][2][128];
  U64 color;
  U64 castling[16];
  U64 ep[128];
} extern zobrist;

enum ettflag {
  TT_EXACT,
  TT_ALPHA,
  TT_BETA
};

struct stt_entry {
  U64  hash;
  int  val;
  U8	 depth;
  U8   flags;
  U8   bestmove;
} extern * tt;

struct spawntt_entry {
  U64  hash;
  int  val;
} extern * ptt;

struct sevaltt_entry {
  U64 hash;
  int val;
} extern * ett;

extern int tt_size;
extern int ptt_size;
extern int ett_size;

U64 rand64();
int tt_init();
int tt_setsize(int size);
int tt_probe(U8 depth, int alpha, int beta, char * best);
void tt_save(U8 depth, int val, char flags, char best);
int ttpawn_setsize(int size);
int ttpawn_probe();
void ttpawn_save(int val);
int tteval_setsize(int size);
int tteval_probe();
void tteval_save(int val);

Up one Level