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

Username:   Password: 
 RegisterRegister   
 Programming a TICTACTOE game help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vptech




PostPosted: Sat May 31, 2008 8:27 pm   Post subject: Programming a TICTACTOE game help

hi,
i need help programming a TICTACTOE game...i am kinda new at this...so i'm getting very confused Confused, with exactly what i should begin with to design this software.
I'd like to know how to design a scoring system within the TICTACTOE game which keeps track of the number of games each player has won..
please reply soon....!!!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat May 31, 2008 9:10 pm   Post subject: Re: Programming a TICTACTOE game help

vptech @ Sat May 31, 2008 8:27 pm wrote:
with exactly what i should begin with to design this software

You should probably start with thinking about things like:
- how would you represent the current state of the board in memory? (arrays are a nice option)
- how would you let users declare their moves? (keyboard and/or mouse)
- how would you figure out if someone has won the current game? (depending on the decisions for the first point, this could be either very easy or very difficult, so it's good to think ahead).
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Insectoid




PostPosted: Sat May 31, 2008 9:24 pm   Post subject: RE:Programming a TICTACTOE game help

Have you done multi-dimensional arrays yet? I assume that's what you would need)
riveryu




PostPosted: Sat May 31, 2008 10:41 pm   Post subject: RE:Programming a TICTACTOE game help

You should consider tony and insectoid's advices before trying to make a scoring system.
You should not be worrying about making that right now.

But theres a hint anyways:

Scoring is number games someone wins so you should variable to store their scores. Evertime they win you add 1 to it.
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: