forked from len0rd/rockbox
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
This commit is contained in:
parent
8dccb294a8
commit
7ceadd79db
3 changed files with 350 additions and 317 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue