Skip to content

Commit

Permalink
test_bs29 query
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Jan 22, 2023
1 parent d04bd68 commit f884360
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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));
}
Expand Down

0 comments on commit f884360

Please sign in to comment.