-
how can i get the winner of my a tic tac toe games? i'm using 9 lables on the game, so can i do something like:
If blah = "123" or 157" Then
Msgbox "Winner"
End If
But the question is, do I have to do and "If" statement for 123, 157, ect; to get the winner, or is there a quicker and shorter way?
-
You can use either Select Case or If...Then.
How are you structuring your program? By Array?
Please elabourate on your code.
-
What I was going to do what put all of the winning lines in a list box:
123
157
147
213
ect;
then I was going to do a For..Next statement to see if any of lines would match an Label caption that would have the players moves in it... but I figuer this, if I could sort the numbers in the label caption (ex: 213 to 123) then I would use the If...Then.