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

Suggestion for hints - highlight talon / redeal when no moves possible #389

Open
hajo4 opened this issue Oct 5, 2024 · 2 comments
Open

Comments

@hajo4
Copy link

hajo4 commented Oct 5, 2024

just to make it more clear that the game is not yet stuck,

@joeraz
Copy link
Collaborator

joeraz commented Oct 5, 2024

Interesting thought. A couple concerns here:

  • The hint logic is not currently built to handle for single pile hints - it requires a to stack and a from stack. Refactoring the logic to support a single stack move might be tricky.
  • Just because you can deal cards from the talon or redeal doesn't mean the game isn't yet stuck. Games like Klondike and Cruel have unlimited redeals, but most losses come when continuing to redeal no longer changes the order of the cards, thus getting caught in an endless loop.

@hajo4
Copy link
Author

hajo4 commented Oct 5, 2024

hint logic .. requires a to stack and a from stack

I mean, when there are no hints, it draws a red frame around the playfield.
So, it could just as well draw a frame around the locations of talon or redeal
if there are more card/redeals available (or use some other color in that case).

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