tic tac toe.

Hi i am noob in programming without experience and just learning 15 days c++ with 1 hour per day ,so i have 15 hour until now.
so my question is when you believe will be ready to make a tic tac toe if i continue with this way(1 hour per day)?

Just imagine yourself in 15 first days of c++(without previous experience),and tell me our opinion.
THANKS!!!
It really depends on how much you've been covering per hour. You should be able to make a tic-tac-toe after learning about arrays.
I made a tic tac toe program on my own after learning c++ essentials. A lot of it isnt just code, its also conceptual stuff that might not even be related to c++ programming. Thats why sometimes people go at projects with pencil and paper before they even type it.

Back to the code part.

You could use arrays to store the possible win combinations.
Then use logic like && (and) and || (or) to test if the spots == X and O.
There are 8 possible ways to win.
Last edited on
Yeah, arrays and for loops for the most part. If you want hideous code for a first attempt you can look at mine: http://pastebin.com/66nAYmv1
Topic archived. No new replies allowed.