|
-
Oct 2nd, 2000, 03:19 PM
#1
Thread Starter
Fanatic Member
hello
I am making a tic tac toe game and am trying to streamline
my code by using an array.
I have 9 cmdButtons and am trying to run a sub that checks
to see (across the top row)
---------------------------
Private Sub Command1_Click(Index As Integer)
cmdButton(index).caption="X"
if cmdButton(1)+cmdButton(2)+cmdButton(3)=6
then msgbox"you win
endif
end sub
---------------------------
I know that is the wrong syntax but any suggestions would be great.
I actually got the tic tac toe game to work but it is
a million lines of if then statements,checking for every
possible solution.
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|