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

False Positive for solving puzzle #4

Open
JFed-9 opened this issue Dec 8, 2021 · 2 comments
Open

False Positive for solving puzzle #4

JFed-9 opened this issue Dec 8, 2021 · 2 comments
Assignees

Comments

@JFed-9
Copy link

JFed-9 commented Dec 8, 2021

I'll attach a screenshot. I was guessing where the last two mines could be, got one right and one wrong. As I was clicking through the safe tiles, it said I finished the game, but one of my flags was incorrect. If you look closely at the bottom right, there's a 3 with 4 flags next to it. The flag should be on the box below it.

image

@nickarocho nickarocho self-assigned this Jan 20, 2023
@lolaswift
Copy link

any idea how to fix this?

@JFed-9
Copy link
Author

JFed-9 commented Feb 23, 2023

To be honest, I haven't had a lot of time to go over your code (which is impressively concise and elegant by the way). But if I were to guess, it has something to do with the flagging/revealing functions. The win check is fine, it should work as expected. But just now as I was testing, I had another experience where there was one mine and one free space left, I flagged the free space and unflagged a random mine, and it decided to click the unrevealed mine and lose the game. I can't quite put my finger on it, but the flagging/revealing functions are what I would look into.

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

3 participants