|
Please help, need within next half hour
I'm programming a VB tic tac toe game. for the board I have 9 image controls
named tictactoe(Index). and two picture controls (one X one O) called Sign(0), and Sign(1) (0 is X). I drag and drop the Sign controls onto the tictactoe one and everything works fine. What I need help on is determining the winner of the game. Right now all I know is how to:
For Index = 0 to 2
if tictactoe(Index).picture = Sign(0).picture Then
Winner = "X"
cmdnew_click
end if
Next
Naturally though using this code whenever I put down an X on the top row, it immediatly says X is the winner and ends the game. How do I make it so the ENTIRE top row has to be X before this code executes?
Thx
Last edited by JDS; Nov 16th, 2005 at 10:20 AM.
|