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 3 of 3

Thread: Question regarding my university project

  1. #1
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Question regarding my university project

    Hello Everyone!

    I have to create a small game in Java as my university project and I'm kind of lost about how it would be optimal to create my classes / subclasses / objects. Problem is, most of the score I can get for it depends on how well I handled object orientation.
    The game needs to have:
    - Randomized character generation. Every character needs to have 10 skills. All of the skills are random between 1 and 100. They also receive a % cut from the mission rewards based on their highest skill.
    - Every skill has a related challenge, meaning there are 10 different types of challenges. A challenge has a random difficulty between 25 and 125. In order to beat the challenge the character(s) taking it on need to have a higher related skill, than the challenge's difficulty.
    - The characters you select need to take on missions, which have anywhere between 4 - 9 challenges.
    - The characters can have either 1 or 2 out of 9 possible tasks assigned to them. Assigned tasks can effect their skills, or add the character a special ability. Tasks also increase the cut a character receives from the mission reward.
    - Every Task has 1, 2, or 3 related challenges. Every character can only take on challenges, that their assigned task / tasks are related to.

    How would you go about creating the classes for this game?

    Thank you for any help you can provide!

  2. #2
    Member MrLowBot's Avatar
    Join Date
    Nov 2018
    Location
    Sweden
    Posts
    120
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Question regarding my university project

    Start by writing down things on paper of everything you think the game should have.
    Start small. Don't get too detailed yet. And start by making one main class and then maybe
    an interface.

    Ask yourself "What should be happening here? What should be generated there?"

    Make things very small and start with the basics and then add onto it.
    At some point you will get more and more advanced.
    Just don't crash into a big project without break down a lot of smaller steps.

    Cheers.
    "Tick, tack"

  3. The Following User Says Thank You to MrLowBot For This Useful Post:

    Sethrian (May 7th, 2019)

  4. #3
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Question regarding my university project

    Hey! Thank you for the tips.
    Yeah, I just created the classes I knew it will 100% need and kept adding things to that as I went on. Only needed to add 1 additional class (decided to split the class of challenges in two because of different object creation requirements in specification). Anyway, it turned out kind of all right. Got some messy code in it, because when I started I made some poor choices about what to handle in methods (didn't realize it would come up multiple times later too), and didn't have time to change those parts later. I certainly learned a lot from the project.

Similar Threads

  1. Replies: 1
    Last Post: February 13th, 2019, 12:32 PM
  2. University project - Library Program.
    By adrian.tudor in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 12th, 2012, 07:31 AM
  3. Program goes into infinite compilation. University project - Library Program.
    By clarky2006 in forum What's Wrong With My Code?
    Replies: 35
    Last Post: November 10th, 2012, 02:56 PM
  4. Question about project libraries
    By xMKx in forum Java Theory & Questions
    Replies: 0
    Last Post: August 12th, 2012, 11:33 PM
  5. Question about my project
    By slam.dunkish in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 29th, 2011, 11:34 PM