Author |
Message |
william 01
|
Posted: Tue Mar 29, 2011 1:49 pm Post subject: Cat's game won't work |
|
|
need help to get Cat's game to work in my tic tac toe game.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
william 01
|
Posted: Tue Mar 29, 2011 1:58 pm Post subject: Re: Cat's game won't work |
|
|
I will post the whole code when i get home, (my code is on a different computer, then the one i am using).
i have it setup in a function, this how i did it:
VisualBASIC: | Private Function catsGame() As Boolean
If Player1Won() = False or Player2won () = False Then
Return True
lblPlayer.Text = "Cat's Game"
End If
End function |
|
|
|
|
|
|
apython1992
|
Posted: Tue Mar 29, 2011 2:03 pm Post subject: RE:Cat\'s game won\'t work |
|
|
Well, where are you having your problems? Try to narrow it down a bit.
|
|
|
|
|
|
william 01
|
Posted: Tue Mar 29, 2011 2:54 pm Post subject: Re: Cat's game won't work |
|
|
the problem is that when the conditions should have been met it doesn't show "Cat's Game" in lblPlayer.
Description: |
here is a copy of the whole thing |
|
Download |
Filename: |
Copy of Tic-Tac-Toe.zip |
Filesize: |
120.67 KB |
Downloaded: |
426 Time(s) |
|
|
|
|
|
|
Insectoid
|
Posted: Tue Mar 29, 2011 5:10 pm Post subject: RE:Cat\'s game won\'t work |
|
|
Well, there are 9 squares on a tic-tac-toe board. Therefore, the game can only be played for 9 turns. If it has been played for 9 turns, it's a cat's game.
|
|
|
|
|
|
|