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

Made it so the first click in a game will be in a large empty field #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dsmurrow
Copy link

I feel like your first click in any minesweeper game should be one that exposes a good amount of squares. So I implemented a breadth-first search to count the number of tiles in a starting field and regenerate the minefield if it's not big enough.

@robmikh
Copy link
Owner

robmikh commented Jul 24, 2023

Thanks for the contribution! I've got my hands full at the moment, but I'll try to get to this soon.

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

Successfully merging this pull request may close these issues.

2 participants