-a- preset() just a basic loop over all of the grid length
yes, default of a variable is 0 ( or boolean false )
why i made it ? ++ to show you ++ as a future reset of the array
-b- yes drawmines might work, problem with random is that you might hit a existing one.
-c- preset from a start menu
-
- there you set drawmines variable
-
- i miss where you go to the main game? by button? keyboard?
-
- there / before you call main page, must run the
drawmines();
to set your array.
looks like you use 2 separate variables, so you miss to set drawmines
with the value of startpage mines.
OR you miss to make drawmines a global variable.
if you now can not repair your code please post it (complete so we can run it )