only "gtp engine has stopped"
Closed this issue · 4 comments
const file = "./leelaz.exe";
const args = [ "-g", "-q", "--noponder", "-w ./network.gz" ];
const leela = new Controller(file, args);
leela.start();
const {id, content, error} = await leela.sendCommand({name: "genmove", args: ["B"]});
if (error) throw new Error("Leela throwed an error!");
console.log(content);
await leela.stop();
When I run this example, I just get an UnhandledPromiseRejectionWarning: Error: GTP engine has stopped
error message.
By contrast, when I execute the ./leelaz.exe -g -q --noponder -w ./network.gz
command directly from the commandline I get a working GTP session, and can perform the genmove and even get an answer.
I'm just getting started with this, so I'm probably missing something obvious.
I tried adding / removing the "-q" option to make the other debug output silent.
"-w" and "./network.gz" should be two different args. Can you try that and see if it works?
Sorry, I still don't know what exactly went wrong,
but I got it running now. (perhaps the path to the network file was wrong)
Sorry for wasting your time.
I'm glad it worked in the end!