Skip to content

Commit

Permalink
Don't set show_move_was_forced flag from AB filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Mar 17, 2021
1 parent 33334ab commit 297f604
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/81_arrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,24 @@ function DrawArrows(node, specific_source = null, show_move = null) { // node,
ok = false;
}
}

// If the show_move would be filtered out, note that fact...

if (!ok && info_list[i].move === show_move) {
show_move_was_forced = true;
}
}

// Filter for ab mode...
// Note that we don't set show_move_was_forced for ab mode.
// If it wasn't already set, then we have good info for this move.

if (mode === "ab") {
if (loss >= config.ab_filter_threshold) {
ok = false;
}
}

// If the show_move would be filtered out, note that fact...

if (!ok && info_list[i].move === show_move) {
show_move_was_forced = true;
}

// Go ahead, if the various tests don't filter the move out...

if (ok || i === 0 || info_list[i].move === show_move) {
Expand Down

0 comments on commit 297f604

Please sign in to comment.