Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    I'm a Civil Engineering student from Australia. "Why are you studying a programming subject then girl?" Who knows, it fit in well with my timetable.

    OKAY
    SO
    basically,

    I need to create this game, please have a look at the attachment.

    I've had a start at it, but am currently walking down struggle street. Where do I start?!


  2. #2
    Junior Member
    Join Date
    Oct 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    SO far i have created three classes, each called "Player" "World" and "Territory".
    The Player class looks like this:

    import java.util.Scanner;

    class Player
    {
    private static int count = 0;
    public void Player()
    {
    count = count + 1;
    Scanner importText = new Scanner(System.in);
    String name;
    int unplacedArmies = 2;

    System.out.print("Enter Player 1's name: ");
    name = importText.nextLine();

    }


    }

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Please post your code correctly using code or highlight tags per the above link.

    Sorry that we didn't make your deadline. Please come back when you're not so desperate, can post your code correctly, and have specific questions or problems that we can help you with.

  4. #4
    Junior Member
    Join Date
    May 2017
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    As a new to java I recommend learning from the, you can find a lot of important information about how to code better and without errors.
    Java can get a bit complicated sometimes as it has to be programmed perfectly, without open cases. That's why, while programming java, it's important to stay focused. If you won't, errors may occur, and vulnerability among the code can pop. There tools to help detecting erros, such as checkamrx and other, but as a good programmer, it's important to also detect them on your own.
    Good luck.
    Ben.

  5. #5
    Member
    Join Date
    May 2017
    Location
    Eastern Florida
    Posts
    68
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    I wonder if anyone will see this. The thread is over 2 years old.

  6. #6
    Member
    Join Date
    Dec 2013
    Location
    Honolulu
    Posts
    83
    Thanks
    1
    Thanked 4 Times in 2 Posts

    Default Re: New to Java, assignment due in a few hours </3 Need to create a very basic game called DOMINATION

    Egineering student. This will be nothing to you then. I think you should stick to learning first inheritance, encapsulation, interface, and the many concepts of Java programming before you start your class structures. This would be the most ideal way to learn Java programming. Just concentrate on ideas. Like how you would convert a int data type to char data type, called primitive data type. This being in the conceptual idea in a program. For example, reading car models, make using scanner class.
    Last edited by planetHollywood; January 5th, 2018 at 07:15 PM.

Similar Threads

  1. While loop to perform multiple steps Please help assignment due in 12 hours!!
    By brobertson300 in forum What's Wrong With My Code?
    Replies: 28
    Last Post: March 21st, 2014, 03:17 PM
  2. How do I create a most basic java timer ?
    By steven_bishop in forum Java Theory & Questions
    Replies: 3
    Last Post: December 5th, 2012, 01:53 AM
  3. Replies: 17
    Last Post: December 23rd, 2011, 04:38 PM
  4. FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS
    By DUE IN 4 HOURS in forum What's Wrong With My Code?
    Replies: 27
    Last Post: November 3rd, 2011, 08:15 AM
  5. Need help on an Assignment but its due tomorrow!
    By Mob31 in forum Paid Java Projects
    Replies: 1
    Last Post: March 2nd, 2011, 06:54 AM