From f88436081a52187c3b74b0269654313cd6b54a7e Mon Sep 17 00:00:00 2001 From: rooklift <16438795+rooklift@users.noreply.github.com> Date: Sun, 22 Jan 2023 15:44:54 +0000 Subject: [PATCH] test_bs29 query --- src/modules/engine.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/engine.js b/src/modules/engine.js index d7a0c5b1..4cc796f4 100644 --- a/src/modules/engine.js +++ b/src/modules/engine.js @@ -187,6 +187,7 @@ let engine_prototype = { }); this.__send({id: "query_version", action: "query_version"}); + this.__send({id: "test_bs29", rules: "Chinese", boardXSize: 29, boardYSize: 29, maxVisits: 1, moves: []}); this.scanner.on("line", (line) => { if (this.has_quit) { @@ -205,6 +206,15 @@ let engine_prototype = { this.log_and_alert("Received non-JSON:", line); return; } + if (o.id === "test_bs29") { // Before the main check for errors. + if (!o.error) { + this.log_and_alert( + "This build of KataGo appears to be compiled with \"bs29\" support for board sizes above 19. " + + "This build will be significantly slower. Consider installing the normal version." + ); + } + return; + } if (o.error) { alert("Engine said:\n" + stringify(o)); }