This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm working on a minesweeper style game and I'm trying to implement the algorithm used to reveal tiles. Theoretically, it should be relatively simple:
On click, reveal a tile. If the tile has 0 adjacent mines, run the same code on its neighbors, checking if they all have 0 mines and causing them to reveal their neighbors and so on.
I feel this code should be sufficient, but I get an infinite loop error whenever I run it.
I genuinely don't know what's causing the issue, here. Could it be the way I get the surrounding tiles?
Subreddit
Post Details
- Posted
- 6 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/unrealengin...