Hey guys just wanna tell you now that I chose to do a minesweeper game or attempt to do one for a class project in VB. Now I'm not that experienced of a programmer so this is fairly difficult and I can tell you that I'm in way over my head with this so please don't get made/ frustrated that I'm asking for SOO much help. This is my first year of taking Visual Basic in a college setting. I really gave up asking my teacher because he's kind of, well, not good at this stuff which is weird right?
Anyway, amazingly I have it so it sets up a 10x10 grid of buttons, but other than that, I'm lost. I've tried to find source code to see how stuff works, but I get completely lost because that code is so advanced.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' The comma indicates 2 dimensions, as in x, y
Dim mineFieldButtons As Button(,)
' Create our array
mineFieldButtons = New Button(Width, Height) {}
For X As Integer = 0 To Width - 1
For Y As Integer = 0 To Height - 1
' Create the button
'mineFieldButtons(X, Y) = CreateButton(X, Y)
' Add it to the form
Controls.Add(mineFieldButtons(X, Y))
Next
Next
End Sub
This is my code so far =(
I'll take any help someone is willing to give.
My *goal* is to make it so when a button is pressed it goes to flat, i know the code to make it flat but it doesn't want to work when I type it in. Then I want to get the bombs and numbers set up. The clearing of blank squares, to me, is trivial, I just want this to be able to work closely to the real thing.