Skip to content

Commit

Permalink
[idf_search.rs] Remove an overly specific check from recurse(…).
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Oct 9, 2024
1 parent e3798fb commit 699bc36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/rs/_internal/search/idf_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ impl<T: CheckPattern> IDFSearch<T> {
solution_moves: SolutionMoves,
) -> SearchRecursionResult {
let current_pattern = kpattern_stack.current_pattern();
if remaining_depth == 0 && !T::is_valid(current_pattern) {
// TODO: apply invalid checks only to intermediate state (i.e. exclude remaining_depth == 0)?
if !T::is_valid(current_pattern) {
return SearchRecursionResult::ContinueSearchingDefault();
}

Expand Down
4 changes: 2 additions & 2 deletions src/rs/scramble/scramble_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub(crate) fn idfs_with_target_pattern<T: CheckPattern>(
target_pattern,
generators,
Arc::new(SearchLogger {
// <<< verbosity: VerbosityLevel::Silent,
verbosity: VerbosityLevel::Info, //<<<
verbosity: VerbosityLevel::Silent,
// verbosity: VerbosityLevel::Info, //<<<
}),
&MetricEnum::Hand,
true,
Expand Down

0 comments on commit 699bc36

Please sign in to comment.