diff options
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.c')
-rw-r--r-- | apps/plugins/chessbox/gnuchess.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/gnuchess.c b/apps/plugins/chessbox/gnuchess.c index 4f86863ac8..e72a489a0d 100644 --- a/apps/plugins/chessbox/gnuchess.c +++ b/apps/plugins/chessbox/gnuchess.c | |||
@@ -1003,7 +1003,7 @@ register int sq; | |||
1003 | /* ............ MOVE GENERATION & SEARCH ROUTINES .............. */ | 1003 | /* ............ MOVE GENERATION & SEARCH ROUTINES .............. */ |
1004 | 1004 | ||
1005 | 1005 | ||
1006 | int SelectMove( short side, short iop , void (*callback)(void)) | 1006 | int SelectMove( short side, short iop , void (*callback)(void), char* move_buffer) |
1007 | 1007 | ||
1008 | /* | 1008 | /* |
1009 | Select a move by calling function search() at progressively deeper | 1009 | Select a move by calling function search() at progressively deeper |
@@ -1114,6 +1114,13 @@ static short i,alpha,beta,score,tempb,tempc,tempsf,tempst,xside,rpt; | |||
1114 | } | 1114 | } |
1115 | else mvstr1[0] = '\0'; | 1115 | else mvstr1[0] = '\0'; |
1116 | /*OutputMove();*/ | 1116 | /*OutputMove();*/ |
1117 | |||
1118 | short index; | ||
1119 | for (index=0;index<4;index++){ | ||
1120 | move_buffer[index] = mvstr1[index]; | ||
1121 | } | ||
1122 | move_buffer[index] = '\0'; | ||
1123 | |||
1117 | if (score == -9999 || score == 9998) mate = true; | 1124 | if (score == -9999 || score == 9998) mate = true; |
1118 | if (mate) hint = 0; | 1125 | if (mate) hint = 0; |
1119 | if (root->flags & cstlmask) Game50 = GameCnt; | 1126 | if (root->flags & cstlmask) Game50 = GameCnt; |