I am totally new to Visual Basic and started out with a copy of version 4 that I was given. I am hooked. I enjoy writing code and am looking forward to creating my own spins on different code projects just like the rest of you.
I have put together a small program for the totally beat-to-death term SuDoKu and am having trouble with generating the boards (arrays) to display.
I have did this thus far:
[Dim MyNum(9,9) As Integer]
[ for x = 1 to 9 ]
[ for y = 1 ro 9 ]
[newZ:]
[Randomize]
[z = Int( ( 9 * RND) + 1)]
[if y = 1 then goto getnewnum]
[ for w = ( y - 1) to 1 Step -1]
[ if MyNum(x , y) = MyNum(x , w) then goto newZ]
[ next w]
[if x = 1 then goto getnewnum]
[ for v = (x - 1) to 1 Step -1]
[ if MyNum(x , y) = MyNum(v , y) then goto newZ]
[ next v]
[getnewnum]
[next y, x]
I have done the "homework" suggested by the web page authors. There are many posts that I see that are written for you more experienced programmers, but none for me. Does anyone have a clue how to assist me or even want to try?
I would appreciate some assistance.
I have put together a small program for the totally beat-to-death term SuDoKu and am having trouble with generating the boards (arrays) to display.
I have did this thus far:
[Dim MyNum(9,9) As Integer]
[ for x = 1 to 9 ]
[ for y = 1 ro 9 ]
[newZ:]
[Randomize]
[z = Int( ( 9 * RND) + 1)]
[if y = 1 then goto getnewnum]
[ for w = ( y - 1) to 1 Step -1]
[ if MyNum(x , y) = MyNum(x , w) then goto newZ]
[ next w]
[if x = 1 then goto getnewnum]
[ for v = (x - 1) to 1 Step -1]
[ if MyNum(x , y) = MyNum(v , y) then goto newZ]
[ next v]
[getnewnum]
[next y, x]
I have done the "homework" suggested by the web page authors. There are many posts that I see that are written for you more experienced programmers, but none for me. Does anyone have a clue how to assist me or even want to try?
I would appreciate some assistance.
Comment