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)
downloadrockbox-7ceadd79db71cee6b2ae7f89f992e896fd11c02c.tar.gz
rockbox-7ceadd79db71cee6b2ae7f89f992e896fd11c02c.zip
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];
26extern short color[64]; 26extern short color[64];
27extern long Level; 27extern long Level;
28extern short TCflag,TCmoves,TCminutes; 28extern short TCflag,TCmoves,TCminutes;
29extern short timeout;
29 30
30/* ---- RockBox integration ---- */ 31/* ---- RockBox integration ---- */
31extern struct plugin_api* rb; 32extern struct plugin_api* rb;
@@ -33,8 +34,7 @@ extern struct plugin_api* rb;
33/* ---- The beginning of a GNUChess v2 APIfication ---- */ 34/* ---- The beginning of a GNUChess v2 APIfication ---- */
34void SetTimeControl(void); 35void SetTimeControl(void);
35void GNUChess_Initialize(void); 36void GNUChess_Initialize(void);
36int VerifyMove(char s[],short iop,unsigned short *mv); 37int VerifyMove(char s[],short iop,unsigned short *mv);
37int SelectMove ( short side, short iop); 38int SelectMove ( short side, short iop , void (*callback)(void) );
38
39 39
40#endif 40#endif