Skip to content

Commit

Permalink
BUG FIX: override duplicate depth test order.
Browse files Browse the repository at this point in the history
If two -dto2 9,... were specified in succession then they resulted in
two levels with the same .max_depth. This fixes it w a test.
  • Loading branch information
shlomif committed Aug 31, 2017
1 parent 116f3fc commit 092d8ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fc-solve/source/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ int DLLEXPORT freecell_solver_user_set_depth_tests_order(
{
break;
}
else if (min_depth <
else if (min_depth <=
soft_thread->by_depth_moves_order.by_depth_moves[depth_idx]
.max_depth)
{
Expand Down
12 changes: 12 additions & 0 deletions fc-solve/source/t/lib/FC_Solve/Test/Verify/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ __PACKAGE__->populate(
args => { deal => 24, theme => [ "--set-pruning", "r:tf", ], },
msg => "Solving Deal #24 with set-pruning run-to-founds",
},
'110_dto2' => {
args => {
deal => 110,
theme => [
"--method", "random-dfs",
"-dto2", "9,[012][4678]",
"-dto2", "9,[01234678]=asw(1)",
"-seed", 10468
]
},
msg => "A configuration with which the solver got stuck."
},
'617_jgl' => {
args => { deal => 617, theme => [ "-l", "john-galt-line" ], },
msg => "Solving Deal #617 with the john-galt-line",
Expand Down

0 comments on commit 092d8ce

Please sign in to comment.