1
Description: Fruit does not calculate a move to make because it expects the go command
2
to have arguments, e.g. 'go wtime 30000'. This is because it looks for a string starting
3
with "go " instead of just "go". If that change is made it appears to just do an infinite
4
search. I've attached a patch that allows the simple go command and searches to depth 5
5
if no arguments are passed to go.
6
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/fruit/+bug/74764
7
Author: Robert Ancell, robert.ancell@canonical.com
10
Index: fruit-2.1.dfsg-1.orig/src/protocol.cpp
11
===================================================================
12
--- fruit-2.1.dfsg-1.orig.orig/src/protocol.cpp 2010-12-09 12:34:30.000000000 +0100
13
+++ fruit-2.1.dfsg-1.orig/src/protocol.cpp 2010-12-13 09:49:11.000000000 +0100
18
- } else if (string_start_with(string,"go ")) {
19
+ } else if (string_start_with(string,"go")) {
21
if (!Searching && !Delay) {
26
bool infinite, ponder;
27
- int depth, mate, movestogo;
28
+ int depth, mate, movestogo, arg_count;
30
double binc, btime, movetime, winc, wtime;
34
ptr = strtok(string," "); // skip "go"
37
for (ptr = strtok(NULL," "); ptr != NULL; ptr = strtok(NULL," ")) {
45
wtime = double(atoi(ptr)) / 1000.0;
53
+ // If no arguments default to search depth 5