Talk:Rocks (Minesweeper)/@comment-5334617-20141221223626

I see some comments

'To change the amount of 'bad rocks, it's on Line 19. 'Also change the amount on 'Line 67 to make it work.

Where a single value appears twice in the code, it is usual to create a variable name for it. Initialize the variable somewhere near the beginning of the code, and use the variable name in all those expressions where that value is needed. This way, only one line ever has to be edited to change one aspect of the program.

''If you attempt to make a grid bigger than 8x8, a Subscript out of range will occur. If you find any solution to this, please tell me in the comments.''

You can have an array of up to 10*10 implicitly defined simply by referencing any entry within those bounds, but it is best if every array is declared with a  statement. A proper  statement will eliminate that error. Changing the size of the grid is also problematic with the code as structured: as I see it, the lines 11, 12, 15, 16, 21, 24, 26, 39, 46 to 49, 54, and 67 would all have to be changed, and more if you want the grid to stay centered on the screen. A cleaner implementation might have a pair of variables, maybe called  and   (for X Size and Y Size), initialized near the beginning of the code, the arrays declared in terms of those variables, and those variables used wherever the size of the grid is important.