Alright so I am trying to make a simple grid based game. I have a 20 x 20 based grid in which I have changed all the buttons Green with
controls[i,j]->BackColor = System:: Drawing::Color::Green;
in a vector of vectors and that works all good.
So then I have it set to were if you click a grid it turns white.
Alright now at the beginning I have 3 squares randomly made Brown, and ever 3 clicks another 2 square turns Brown.
So what I am trying to figure out, right now the numbers that randomly generate will turn any square Brown, but I want to make it so that the square that have already been made White can not be turned brown. Can someone help me with this??