"Most moves found" for long-running solve can decrease #2

Closed
opened 2022-09-15 09:02:43 -04:00 by adam · 1 comment
Owner

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.

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.
adam added the
bug
label 2022-09-15 09:02:43 -04:00
adam self-assigned this 2022-09-15 09:02:43 -04:00
Author
Owner

Fixed in commit 60971a2

Fixed in commit 60971a2
adam closed this issue 2022-09-15 09:02:52 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: adam/tripeaks-solitaire-solver-js-73k#2
No description provided.