#ifndef DATAH_INCLUDED
#define DATAH_INCLUDED
#include "defs.h"
#include <stdio.h>
/*
 *
 GLOBAL' Global variables are 'externed' in data.h
 SHARED' Global
 * variables are 'externed' in (sourcefile).h
 I wish
 */
extern sHASHENTRY hashtable[HASHSIZE];
extern int      board[256];
extern sHISTDATA move_history[512];
extern sHISTDATA *mhs;
extern unsigned int history[2][64 * 64];
extern sMOVES   move_list[4096];
extern sMOVES  *last_move[MAXPLY];
extern uMOVE    pv[MAXPLY][MAXPLY];
extern int      pvl[MAXPLY];
extern UI64     zobrist[nbPieces][192];
extern FILE    *debuglog;
extern FILE    *trace;
extern int      ply;
extern int      nodes;
extern int      qnodes;
extern UI64     key;
extern int      stm;
extern int      epsquare;
extern int      fifty;
extern int      castle;
extern int      victim;
extern int      kingsq[2];
extern int      force[2];
extern UI64     st;
extern int      stop_search;
extern const int mval[16];
extern const int fval[16];
extern const int dlta[16];
extern const int rank7[192];
extern uMOVE    nomove[1];
extern int      distance[256];
extern int      proximat[256];
extern int      pseudoev[256];
extern KINGDANGER wks, bks;
extern int      material[2];
/* extern int control[256]; */
/* extern int pieces[16][8]; */
extern const int mobscale[32];
extern const int passed_pawn[8];
extern const int connected_passer[8];
extern const int blocked_passer[8];
extern const int candidate_passer[8];
//extern const int k_to_war[192];
extern const int outposts[2][192];
extern const int btrap[192];
extern const int wk_defect[192];
extern const int bk_defect[192];
extern const int dscale[8];
extern const int storm[8];
extern const int f_curve[128];
extern /* const */ char pst[16][192];
#endif	/* DATAH_INCLUDED */
