Computer Science Canada

Programming a TICTACTOE game help

Author:  vptech [ 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....!!!

Author:  Tony [ 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).

Author:  Insectoid [ 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)

Author:  riveryu [ 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.


: