Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Cat's game won't work
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
william 01




PostPosted: 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
Sponsor
sponsor
william 01




PostPosted: 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




PostPosted: 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




PostPosted: 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.


Copy of Tic-Tac-Toe.zip
 Description:
here is a copy of the whole thing

Download
 Filename:  Copy of Tic-Tac-Toe.zip
 Filesize:  120.67 KB
 Downloaded:  419 Time(s)

Insectoid




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: