Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lifthrasiir
5y ago
0 comments
Save
Share
That needs a list of empty cells, otherwise you need to retry and get the same issue as the map-wide regeneration.
0 comments
1 comments · 1 top-level
top
newest
oldest
mkl
5y ago
Well you have all the cells in an array so that's easy enough. Pick a cell at random until you find an empty one, which won't take long. There's no regeneration, just moving one mine to an easy to find place.
j
/
k
navigate · click thread line to collapse