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

Add Solve option #32

Open
ojasva opened this issue Nov 17, 2018 · 3 comments
Open

Add Solve option #32

ojasva opened this issue Nov 17, 2018 · 3 comments

Comments

@ojasva
Copy link

ojasva commented Nov 17, 2018

A simple button which would solve the puzzle for you.

@humdingerb
Copy link
Member

Or rather just a hint that shows what move could be possible. With a 30s penalty.

@ojasva
Copy link
Author

ojasva commented Nov 17, 2018

I thought of that too, but I am not sure if that can be implemented in this game.
Let's say user puts few tiles in the wrong place and then clicks "Hint". What kind of hint would it provide?

@scottmc
Copy link
Member

scottmc commented Nov 17, 2018

There used to be only a single solution to the game, but I changed the code to check the current state of the target board to see if all tiles were placed and if so then call that a win. See there are cases where some tiles can fit in more than one location, and sometimes those other locations would still result is a solution. So adding a solve feature might just solve for the original board prior to the pieces being mixed up.

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

No branches or pull requests

3 participants