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

Username:   Password: 
 RegisterRegister   
 My Game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Xion




PostPosted: Mon Jun 16, 2008 10:47 am   Post subject: My Game

I have it all working, but I just CAN'T seem to get the loops in order. Please try it out and give help Sad

- Oops, I attached it twice... lol..



Tic Tac Dell.zip
 Description:

Download
 Filename:  Tic Tac Dell.zip
 Filesize:  156.95 KB
 Downloaded:  67 Time(s)


Tic Tac Dell.zip
 Description:

Download
 Filename:  Tic Tac Dell.zip
 Filesize:  156.95 KB
 Downloaded:  62 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Mon Jun 16, 2008 11:46 pm   Post subject: RE:My Game

Your game seems (mostly) functional, aside from not actually checking whether anybody has won yet. What's the problem you're wanting help with?
Xion




PostPosted: Tue Jun 17, 2008 12:01 pm   Post subject: Re: My Game

You'll notice that when the player wins, it wont go back to the new game (clear all pics and go again)

Also, say player 1 goes 1, 5, and 9 the game will end, but if it takes player 1 more than three placements, it makes you fill out the whole board before the game ends.)

Thoughts?
DemonWasp




PostPosted: Tue Jun 17, 2008 1:02 pm   Post subject: RE:My Game

After each piece is placed, you need to check whether either player has won (use a procedure to check this). If somebody won, exit the "play" loop, show a "X wins!" message; you should still be in the "game" loop, which will loop back to the menu as soon as the "X wins" message is displayed.

You seem to have a good enough understanding to implement that, so I'll leave it at that. If you need help, just post again.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: