-
Attached is my patch to allow polyglot to work.
Regardless of the commandline, craftyMode gets set. This happens because icsDrone receives sigint=0 from polyglot. I don't know enough about this project to determine if craftyMode should or shouldn't be set when using polyglot, so my patch does not address this issue.
1) I added a routine, polyglot() for determining if the engine is...
2007-08-09 19:56:42 UTC in icsDrone
-
File Added: detect.patch.
2007-08-09 19:43:56 UTC in icsDrone
-
in fics.c, the line:
if (sscanf(line, "Creating: %s (%s) %s (%s) %*s %s %c",
will not parse correctly using the standard C library with ubuntu 7.04, gcc 4.2.1. In order to work correctly, it must be changed to:
if (sscanf(line, "Creating: %s (%[-+0-9]) %s (%[-+0-9]) %*s %s %c",
I'm assuming that the (%s) syntax does work on some compiler/environment setup, otherwise it would never...
2007-08-07 16:37:28 UTC in icsDrone
-
previous was buggy -- it left the trailing ')' character. Here is an updated one:
void update_rating_str(char *rating)
{
char *p;
if ((p=strchr(rating, ')')) != NULL)
*p = '\0';
if (*rating == '(')
memmove(rating, rating + 1, strlen(rating + 1) + 1);
}.
2007-08-07 02:28:31 UTC in icsDrone
-
A little poking around and it's clear it's not the specific string "(++++)" that is the cause. (ie: playing as or against guest isn't relevant) It looks like it shouldn't have ever detected the string, unless sscanf() behaves differently in different environments.
The above fix still works, but to be accurate, you'll have to strip out the parenthesis from the two rating variables after...
2007-08-07 02:19:10 UTC in icsDrone
-
When playing as or against guests on FICS, icsDrone is unable to detect the game creation line because their rating is (++++). The obvious symptom of this is the engine won't start playing when given white. This might cause incorrect initializations, regardless of color.
My local fix of changing the sscanf line in fics.c:
if (sscanf(line, "Creating: %s (%s) %s (%s) %*s %s %c",
to...
2007-08-06 23:15:31 UTC in icsDrone