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

Game lost at start? #1

Closed
adriweb opened this issue Jan 21, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@adriweb
Copy link

commented Jan 21, 2019

Apparently it's possible that upon starting a new game, the initial random combination isn't solvable, and the game says that we've lost :P
Could you check if a move has been made prior to display the message, and if not, re-start/shuffle/initialize the board until a solvable one has been found? (or at least where it's not initially lost)

(initially found by @critor)

@commandblockguy

This comment has been minimized.

Copy link
Owner

commented Jan 24, 2019

Fixed. Will get an update out soon.
Currently it retries up to ten times to generate a map until it has possible moves. If it fails all ten times it displays an error. I may implement something to make sure it's solvable in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.