From 2f647898757b6c71ac708056dcc43a09df1c6f3e Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 23 Dec 2014 22:13:50 +0100 Subject: [PATCH] Send ucinewgame after isready/readyok handshake --- UCI2WB.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/UCI2WB.c b/UCI2WB.c index 2f450e8..856ada3 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -402,10 +402,10 @@ GUI2Engine() oldMem = memory; // we can set other options here if(sc == 'x') { if(newGame) fprintf(toE, "setoption newgame\n"); } else // optional in UCCI - fprintf(toE, "u%cinewgame\n", sc); fflush(toE); pause = 1; // wait for option settings to take effect fprintf(toE, "isready\n"); fflush(toE); Sync(PAUSE); // wait for readyok + fprintf(toE, "u%cinewgame\n", sc); fflush(toE); } else if(!strcmp(command, "usermove")) { sscanf(line, "usermove %s", command); // strips off linefeed -- 1.7.0.4