22 /* ---- chess engine global types ---- */
25 short score
,depth
,time
,piece
,color
;
28 struct TimeControlRec
{
33 /* ---- chess engine global variables ---- */
34 extern short mate
,opponent
,computer
,Sdepth
;
35 extern short locn
[8][8];
36 extern short board
[64];
37 extern short color
[64];
40 extern short TCflag
,TCmoves
,TCminutes
;
42 extern short GameCnt
,Game50
,castld
[2],kingmoved
[2],OperatorTime
;
43 extern struct TimeControlRec TimeControl
;
44 extern struct GameRec GameList
[240];
46 /* ---- The beginning of a GNUChess v2 APIfication ---- */
47 void SetTimeControl(void);
48 void GNUChess_Initialize(void);
49 int VerifyMove(short player
, char s
[],short iop
,unsigned short *mv
, char *move_buffer
);
50 int SelectMove ( short side
, short iop
, void (*callback
)(void), char *move_buffer
);
51 void InitializeStats ( void );
52 void ElapsedTime ( short iop
);