Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counterexample to MinimalKlondike solution #5

Open
clemente213 opened this issue Jan 5, 2024 · 1 comment
Open

Counterexample to MinimalKlondike solution #5

clemente213 opened this issue Jan 5, 2024 · 1 comment

Comments

@clemente213
Copy link

Hello ShootMe

I discovered a counterexample to MinimalKlondike finding the fewest possible moves for any deal, including unsolvable deals. The link is https://greenfelt.net/klondike?game=2095819838.

MinimalKlondike finished the search with a score of 10 in 54 moves. The "high scores" button shows a score of 10 in 53 moves. This may be a trivial counterexample but I thought you might be interested. It is my understanding that MinimalKlondike performs an exhaustive search of all possible moves. In this particular case, a move was saved by not playing the 4-hearts onto the 5-clubs.

Thanks to MinimalKlondike, the skills that I have acquired improve daily and the joy that I experience playing Klondike exceeds my expectations.

@ShootMe
Copy link
Owner

ShootMe commented Jan 5, 2024

Yea this is known. The solver is minimal for solvable deals. However, the way it checks states can cause it to produce sub optimal results for impossible deals since the heuristics it uses assumes a solvable deal. Don't know if I could change that without making the solving time extremely slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants