the game is broken due to gnuchess having differents flags since
wmminichess epoch.

$ minichess
gnuchess: unknown option -- T
gnuchess: unknown option -- C

Development of minichess is still active on github :
https://github.com/insanum/minichess but it doesn't fix this issue.

I tried quickly to find it if was trivial to fix, it doesn't crash on
click anymore but it doesn't happens anything which isn't better. It
doesn't work in text mode (typing coordinates) either. My diff below if
someone wants to try to fix it, or we should remove it.

In the current state, the port is not usable.

Index: src/chess.c
--- src/chess.c.orig
+++ src/chess.c
@@ -2121,23 +2122,10 @@ void main(int argc, char* argv[])
                 perror("dup2");
                 exit(1);
                 }
-            if (c_flag)
+            if (execl(ENGINE, "gnuchessx", NULL) == -1)
                 {
-                if (execl(ENGINE, "gnuchessx", "-T", trans_size,
-                          "-C", cache_size, timer, NULL) == -1)
-                    {
-                    perror("exec");
-                    exit(1);
-                    }
-                }
-            else
-                {
-                if (execl(ENGINE, "gnuchessx", "-T", trans_size,
-                          "-C", cache_size, NULL) == -1)
-                    {
-                    perror("exec");
-                    exit(1);
-                    }
+                perror("exec");
+                exit(1);
                 }
             }
         case -1:

Reply via email to