Skip to content

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

Open
dsmurrow wants to merge 2 commits intorobmikh:masterfrom
dsmurrow:master
Open

Made it so the first click in a game will be in a large empty field#55
dsmurrow wants to merge 2 commits intorobmikh:masterfrom
dsmurrow:master

Conversation

@dsmurrow
Copy link
Copy Markdown

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
Copy Markdown
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