diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-03-14 20:55:59 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-03-14 20:55:59 +0000 |
commit | 789e01bd069bc59b30d24534843090103e7df482 (patch) | |
tree | 02de519dc9f62b75700083d221c9a82949d3663d /apps/plugins/chessbox/gnuchess.h | |
parent | 258a693e95d81b0e149a3c9424c6c5c6aa8b2212 (diff) | |
download | rockbox-789e01bd069bc59b30d24534843090103e7df482.tar.gz rockbox-789e01bd069bc59b30d24534843090103e7df482.zip |
latest update by Miguel Arevalo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9037 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r-- | apps/plugins/chessbox/gnuchess.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h index e94748919a..6be88aecfa 100644 --- a/apps/plugins/chessbox/gnuchess.h +++ b/apps/plugins/chessbox/gnuchess.h @@ -19,14 +19,28 @@ #define valueQ 1100 #define valueK 1200 -/* ---- chess system global variables ---- */ -extern short mate,opponent,computer; +/* ---- chess engine global types ---- */ +struct GameRec { + unsigned short gmove; + short score,depth,time,piece,color; + long nodes; +}; +struct TimeControlRec { + short moves[2]; + long clock[2]; +}; + +/* ---- chess engine global variables ---- */ +extern short mate,opponent,computer,Sdepth; extern short locn[8][8]; extern short board[64]; extern short color[64]; extern long Level; extern short TCflag,TCmoves,TCminutes; extern short timeout; +extern short GameCnt,Game50,castld[2],kingmoved[2],OperatorTime; +extern struct TimeControlRec TimeControl; +extern struct GameRec GameList[240]; /* ---- RockBox integration ---- */ extern struct plugin_api* rb; @@ -36,5 +50,6 @@ void SetTimeControl(void); void GNUChess_Initialize(void); int VerifyMove(char s[],short iop,unsigned short *mv); int SelectMove ( short side, short iop , void (*callback)(void) ); +void InitializeStats ( void ); #endif |