Thread: Where to start

  1. #31
    Registered User
    Join Date
    Apr 2002
    Posts
    99

    Oooh

    I'm in the middle of making a TTT Game too. Maybe we could help each other out?

  2. #32
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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!

  3. #33
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    new

    i completely re did the code...
    it is real un-complex...

    Ill post it asap.
    What is C++?

  4. #34
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    Thumbs up Da Spit

    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++?

  5. #35
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    red_barron

    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++?

  6. #36
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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.

  7. #37
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    sigh.....

    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++?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  3. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 11:48 PM
  4. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  5. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 06:18 AM