My next project in c++, what should i try? (please read)

This is a discussion on My next project in c++, what should i try? (please read) within the C++ Programming forums, part of the General Programming Boards category; Ok, now that I have my tic tac toe game done, what should I try to do now? I plan ...

  1. #1
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    My next project in c++, what should i try? (please read)

    Ok, now that I have my tic tac toe game done, what should I try to do now? I plan to get farther in my deitel & deitel book called c++: how to program. I would like, however, to be able to work on a new project (a game if possible) now that I successfully made a tic tac toe game with 3 different difficulty levels and awsome AI. Now what should I do?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    try to make an object oriented tic-tac-toe game first. Try to run the whole game from within a class such as your main function is something like this :-

    int main()
    {
    TicTacToe Game;
    Game.Play();
    return 0;
    }

    This will help you learn some of the basics of writing a good class and yet still produce a game. You should be able to do this quite quickly having already done a tic-tac-toe game.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,588
    Another board game with more complex rules (say chequers / draughts / 4-in-a-row ). This will test your AI coding skills.

    A simple graphics game (like pong), which requires some animation and collision detection?

    A slightly more complex graphics game (space invaders say).

  4. #4
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    What about the cool game battle ship?? ((thats a tuffy!))
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Battleships a toughie!!!

    I'm gonna die laughing!!!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  6. #6
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    So what project are you gonna try?
    please reply!
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  7. #7
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    What Stoned said, try to make your tic tac toe game more OO. Make lots of structs and classes. Once you get done with that, add more arrays for your tic tac toe, like int board[3][3], then, once you really get good, then maybe you will have a chance at battleship with the array and struct technique

    by the way bluehead, you've given me an idea. I will work on a project over the weekend for a Windows BattleShip Game. I'll post it once I'm done (later next week). Then I'll give out the source code. This is going to be cool.
    Last edited by Xterria; 11-06-2001 at 09:01 PM.

  8. #8
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    nuttin to say but jus' checkin my sig
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  9. #9
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    ok

    Man, i didnt think i would get so many replies! I kind of liked the idea of a simple graphics game. I downloaded the 137 MB direct x 8 SDK from microsoft, is that what I need to do a simple graphics game. Is it way ahead of me to do a simple game like space invaders or galaxian? I think that would be super cool to do, even if it would take me a long time. If it's too far ahead of me, then tell me specifically what stuff I need to learn, and i'll learn it. Thanks.

  10. #10
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    just bumping

    just bumping to top. please tell me what i need to know for something like space invaders or galaxian. yes, i have direct x 8 SDK developer....whatever its called.

  11. #11
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    just bumping to top
    Illegal!! Please read the rules and the faq.

    I downloaded the 137 MB direct x 8 SDK from microsoft, is that what I need to do a simple graphics game.
    Yes on a windows box that will do nicely.

    Is it way ahead of me to do a simple game like space invaders
    Judging by your tictactoe code...... YES. Dont expect to do anything graphical until you have a fair grasp of the language and console programming.Set slightly more realistic and achievable targets and you will learn more quickly and be less inclined to give up.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  12. #12
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    If you just did a TicTacToe console game, why the heck are you jumping to DirectX? Please lay down and ponder what you are really talking about.
    Do you know what this is?
    Code:
    LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
    {
         PAINTSTRUCT ps;
         HDC hdc;
    switch(msg)
    {
    case WM_CREATE:
    {
    return(0);
    }//...
    return(DefWindowProc(hwnd, msg, wparam, lparam));
    }
    If you have no clue then atleast take six more months to master you C++ console stuff. Then move on to a Window tutorial. Then, finally, onto DirectX.

  13. #13
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    lol

    Xterria, you may be a good programmer and all, but think about it. Would you know what that stuff meant before you learned it? Of course not! I don't know what it is because I haven't learned it yet! If you were getting ready to learn windows programming and you asked yourself the same question, you wouldn't know what it meant. lol, 12 year olds can be funny sometimes.

  14. #14
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    That's exactly my point. I do DirectX. I know. You cannot jump from a tic tac cut off my toe game in console all the way to thinking about DirectX, when you should be thinking about Windows programming, instead.

  15. #15
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    If you just want to learn some new stuff try adding openGL to your game.
    I think making X's and O's move and jump around will be good place to start off
    And openGL is will let you design anything you want.
    You can find a good tutoral at http://nehe.gamedev.net
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  2. Operating System Project
    By Pete in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 07-15-2004, 09:33 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Another question on classes
    By hpy_gilmore8 in forum C++ Programming
    Replies: 26
    Last Post: 05-24-2003, 09:11 AM
  5. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21