Skip to content

Commit

Permalink
config.accept_bounds (lowerbound / upperbound)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Apr 25, 2022
1 parent 9206f6b commit 463bf43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/80_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ let info_receiver_props = {

let board = node.board;

if (s.startsWith("info") && s.includes(" pv ") && !s.includes("lowerbound") && !s.includes("upperbound")) {
if (s.startsWith("info") && s.includes(" pv ") && ((!s.includes("lowerbound") && !s.includes("upperbound")) || config.accept_bounds)) {

if (config.log_info_lines) Log("< " + s);

Expand Down
14 changes: 11 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3981,9 +3981,6 @@ function menu_build() {
});
}
},
{
type: "separator"
},
{
label: "Allow stopped analysis",
type: "checkbox",
Expand Down Expand Up @@ -4017,6 +4014,17 @@ function menu_build() {
});
}
},
{
label: "Use lowerbound / upperbound info",
type: "checkbox",
checked: config.accept_bounds,
click: () => {
win.webContents.send("call", {
fn: "toggle",
args: ["accept_bounds"],
});
}
},
]
},
{
Expand Down
1 change: 1 addition & 0 deletions src/modules/config_io.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ exports.defaults = {
"focus_on_text": "focused:",
"focus_off_text": "focus?",

"accept_bounds": false,
"max_info_lines": null, // Hidden option

"bad_move_threshold": 0.02,
Expand Down

0 comments on commit 463bf43

Please sign in to comment.