Hey - I've been given a gutted version of Minesweeper, and been asked to reconstruct it. I'm taking it piece by piece, and I've got some parts working. What I'm trying to get now is the 'Zone Clearing'.
Just quickly: Zone clearing is when you click a 'blank' square, all of the blank squares touching it are revealed, as are the blank ones touching them, and so forth. I believe that some of the numbered squares are revealed too, but that can wait.
My teacher mentioned a recursive function, but I'm not sure how that would work.
My idea of how to make this work involves referencing an element of the 'Controls' array; more specifically an Image (eg.
The only way of changing such an element that I know of is the
function, as shown above. If there is another way of changing the the
property, I would be grateful. If, on the other hand, there is a completely different way of clearing zones, I would be grateful if you could hint (possibly very heavily) in that direction.
I have attached my entire VB.NET project to help.