Results 1 to 3 of 3

Thread: tic tac toe [winner]?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    New Orleans, LA
    Posts
    6
    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?


  2. #2
    Guest
    You can use either Select Case or If...Then.
    How are you structuring your program? By Array?

    Please elabourate on your code.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    New Orleans, LA
    Posts
    6
    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.
    -not all cops eat doughnuts and drink coffee... some of us like milk insted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width