summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/gnuchess.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-03-03 15:01:37 +0000
committerDave Chapman <dave@dchapman.com>2006-03-03 15:01:37 +0000
commit7ceadd79db71cee6b2ae7f89f992e896fd11c02c (patch)
tree7e71c901a5d55804d1538905d3eef589ee0add86 /apps/plugins/chessbox/gnuchess.h
parent8dccb294a851f8814f739cefa5d5e290ffd68371 (diff)
Patch #4736 for Chessbox from Miguel A. Arévalo - Added support for user interaction while thinking, you can force move now with PLAY and quit with OFF (iRiver example). Yield only on Search as any Evaluate will be preceded by a Search. Plus some minor code policing from me to remove tabs in both the patch and the original code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8896 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r--apps/plugins/chessbox/gnuchess.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h
index 68ef9f9a81..e94748919a 100644
--- a/apps/plugins/chessbox/gnuchess.h
+++ b/apps/plugins/chessbox/gnuchess.h
@@ -26,6 +26,7 @@ extern short board[64];
extern short color[64];
extern long Level;
extern short TCflag,TCmoves,TCminutes;
+extern short timeout;
/* ---- RockBox integration ---- */
extern struct plugin_api* rb;
@@ -33,8 +34,7 @@ extern struct plugin_api* rb;
/* ---- The beginning of a GNUChess v2 APIfication ---- */
void SetTimeControl(void);
void GNUChess_Initialize(void);
-int VerifyMove(char s[],short iop,unsigned short *mv);
-int SelectMove ( short side, short iop);
-
+int VerifyMove(char s[],short iop,unsigned short *mv);
+int SelectMove ( short side, short iop , void (*callback)(void) );
#endif