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

If player is out of pieces and out of swipes, end the level #6

Closed
thunderrabbit opened this issue Aug 11, 2018 · 1 comment
Closed
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@thunderrabbit
Copy link
Owner

thunderrabbit commented Aug 11, 2018

Instead of requiring the timer to run out, we should be able to detect the user has no chance of winning, at LEAST in the case there are no pieces available and none on the board.

@thunderrabbit thunderrabbit added this to the MVP milestone Jan 9, 2020
@thunderrabbit thunderrabbit changed the title If player is out of pieces and out of swipes, end the level If player is out of pieces end the level Jan 9, 2020
@thunderrabbit thunderrabbit added enhancement New feature or request good first issue Good for newcomers labels Jan 9, 2020
@thunderrabbit thunderrabbit pinned this issue Jan 24, 2020
@thunderrabbit thunderrabbit unpinned this issue Feb 27, 2020
@thunderrabbit thunderrabbit changed the title If player is out of pieces end the level If player is out of pieces and out of swipes, end the level Mar 18, 2022
@thunderrabbit
Copy link
Owner Author

I figured out a way determine if swipes remain. If any piece has two or more neighbors, then a swipe remains.

13068c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant