I'm in the middle of making a TTT Game too. Maybe we could help each other out?
I'm in the middle of making a TTT Game too. Maybe we could help each other out?
here's my first game i had fun making it for school, its in c but the only differences i noticed (at our level) is that
printf is coot
scanf is cin
or something like that, rest are almost identical.
(made it in dev c++ v4)
enjoy!
i completely re did the code...
it is real un-complex...
Ill post it asap.
What is C++?
Sure... I actually know what im doing now i think...
No offence to tech... but my code is real simple compared to his.
let me show you how my grid is...
1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9
Place your X: _
if you mash 1 a X pops up where the 1 is..
how do you have your grid?
What is C++?
I just looked at your code...
It is similar... but im going to have 1 and 2 player...
Im only worried cause of how simple the code is
If you look at mine and Techs it looks like I finished building a car with 5000 pieces left over.
What is C++?
Granted I'll admitt that I typically code 'too much', but in this case I have a few good reasons.
1) I space my code out a lot so that creates a lot of extra lines, yet, not extra code.
2) I have AI in my game, as well as 2 player, which adds a lot of code.
3) There is no definate on when you'll go as the player, either 1st or 2nd. This adds a little bit more of code.
4) I have a score table, which adds more code.
5) You can play the game more than once without having to quit.
6) Another reason that isn't that obvious, is that I used row/col to decide where each piece should go. Whereas, most people use a single number for where each piece should go. My method creates a lot more code than the other method.
Even with all of these reasons I'm sure I could significantly detract some of my code without changing the program the least bit, but it doesn't matter to me anymore.
The method of just having a single number to input is much better than doing the row/col thing like I did, IMO. Also, Vicious, I recommed doing AI with your game because you'll learn a lot from doing it, and it makes your whole experience (and game) that much better. It's pretty cool seeing your first AI respond to a human too.
Ive been soo busy with my program today...
The 2 player is fully functional and im almost through with the AI.
It has everything except score tracking.
What is C++?