"Most moves found" for long-running solve can decrease #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For the example long-running game, the "Most moves found" count quickly jumps to 46, but after running through something like over 1,000,000 possibilities it decreases to 43.
I hadn't noticed this before and now that I did, it bothers me.
Cause: The solver determines a "best moves" list by counting the number of actual cards cleared from the pyramid (move lines beginning with "Move"), but what it reports to the UI Web Worker is the total number of moves in the list, including Draws from stock. This means for a while the most cards cleared can be done in 46 moves, but after a while it finds that even more cards can be cleared in only 43 moves.
Fix: The fix will be to report the same number, the actual "Move" lines.
Fixed in commit
60971a2