Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By Tanaris
  • 1 Post By JosAH

Thread: Where to start?

  1. #1
    Tanaris is offline Member
    Join Date
    Jul 2011
    Rep Power

    Default Where to start?

    Hi, I'm new to the forums. I am currently teaching myself Java and have no previous programming experience. I still have ALOT to learn but I had more of a general question.

    How do you decide where to start writing your program?

    I have a game concept I would like to eventually realise but, once I actually know enough java to start, what is a good point to start?

    Start where the player would start? Start with random classes I know I will need? Start with a small but functional part of the game you could start testing soon?

    How do you go about your projects?

    Any advice would be much appreciated.

    qwerty53 likes this.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power


    Try the CRC way (Classes, Responsibilty and Collaboration); first write down the details of your game in plain English (or whatever natural language). The nouns in your story make up your first notion of the classes in your application. The verbs are a rude indication of the methods; now try to play a game in your head, given those nouns (class objects) and verbs (the methods). Refine whenever and whereever needed. Finally you have quite a detailed design of your game and you can start writing code for it ...

    kind regards,

    qwerty53 likes this.
    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    Tanaris is offline Member
    Join Date
    Jul 2011
    Rep Power


    Wow thanks for the super fast reply and great info!

    Makes total sense. Much appreciated! :)

  4. #4
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Camp Lejuene, North Carolina
    Rep Power


    Indeed, also I like to make flow charts about how the program will run. For a game of course you would go through all the different things that could happen. That way you have a good idea of what order you should place things. If you have a turn based game, then make a flow chart showing all the possible outcomes of what could happen in a turn.

    This combined with JosAH's advice will really get your program flowing nicely. There have been times where I'm writing a program, forget where I'm going with it, refer to my notes and then realize that I was wandering aimlessly into the realm of useless coding.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

Similar Threads

  1. Where to start - GUI
    By matejm1994 in forum New To Java
    Replies: 2
    Last Post: 01-30-2011, 05:02 PM
  2. Replies: 1
    Last Post: 01-18-2011, 06:27 PM
  3. Replies: 5
    Last Post: 03-20-2009, 10:04 PM
  4. Where to start?
    By McChill in forum New To Java
    Replies: 5
    Last Post: 02-19-2009, 02:26 PM
  5. Web Start
    By DannyZB in forum NetBeans
    Replies: 0
    Last Post: 11-14-2008, 12:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts