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

Thread: How hard would this be to write for a Beginner?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    8
    My Mood
    Tired
    Thanks
    1
    Thanked 1 Time in 1 Post

    Question How hard would this be to write for a Beginner?

    So There's this group of people who want to write a App for a game and It got me thinking of how id write this if i were to use java to write something like it. Beginning this September i'll be taking Basic Java programming. But I do have some experience with java. so my question is if I were to write this in java how hard would it actually be for me?

    The Basic Components of the app are as follows.

    1) A Encyclopedia with images and both mouse and keyboard based scrolling (This is the second easiest Thing in the entire app all I'd have to worry about is typesetting and user input right?)

    2)A User Based Bulletin board with multi-type input categories which are removed automatically over time or by users. (No clue where to start with this one, maybe some arrays with time decays on input structures or something???)

    3) A "Challenge" generator with Case Sensitive Outputs so that the outputs aren't "Strange" (I believe this would be the easiest to actually write out of the entire list of features we were talking about. Just use Common arrays and a few Loops to generate the outputs.)

    4)A Calendar like gui that allows users to input times that other users can see. *Optional* the calender "Scrolls" and the user is alerted of previous appointments on the calendar. (This ones got me pretty stumped. I honestly have no clue where to start with this one.)

    5)User Case sensitive profiles for the application. (I'd need some help with this. server wise and client wise.)

    6)All of this in a easy to use GUI. (I've never worked with GUIs =( )

    Thats about it. Any tips or ideas would be Extremely Appreciated.

    P.S. Would this be easier in something like Visual Basic? I took that class and it seems like it'd be a lot easier albeit much cruder.
    Last edited by Bgriesh; August 6th, 2012 at 02:28 PM.


  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    8
    My Mood
    Tired
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How hard would this be to write for a Beginner?

    UPDATE!
    I'm Gonna Start work on #3 on the list. And I could use some help setting up a flow chart. Some Advice would be GREATLY appreciated. Oh and some tips for handling Multiple Arrays in a single function would be greatly appreciated as well!

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: How hard would this be to write for a Beginner?

    Quote Originally Posted by Bgriesh View Post
    3) A "Challenge" generator with Case Sensitive Outputs so that the outputs aren't "Strange" (I believe this would be the easiest to actually write out of the entire list of features we were talking about. Just use Common arrays and a few Loops to generate the outputs.)

    UPDATE!
    I'm Gonna Start work on #3 on the list. And I could use some help setting up a flow chart. Some Advice would be GREATLY appreciated. Oh and some tips for handling Multiple Arrays in a single function would be greatly appreciated as well!
    I don't get what you mean by a "Challenge" generator.. but for multiple arrays:
    Multi-dimensional arrays, like int[][][] for a nice 3D setup
    ArrayList - a class made for toying with data

    Eh, without knowing more about what your "Challenge" generator actually does, I am out of advice. Elaborate on your project and see if you get more feedback.

  4. #4
    Junior Member
    Join Date
    Aug 2012
    Posts
    8
    My Mood
    Tired
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How hard would this be to write for a Beginner?

    import java.util.*;
    public class Core {
     
    		public static void main(String[] args) 
    		{
     
    			String Boss;
    			String Weapon;
    			String Character;
    			String[] Bosses = {"Nine Toes","Bone Head","Roid Rage Psycho","Sledge","Krom","Taylor Kobb","Rakk Hive","Hanz and Franz","Baron Flynt","Master McCloud","Scar","Moe","Marley","Skagzilla","Mothrakk","Reaver","Slither","Rakkinishu","One-Eyed Jack","Helob","WidowMaker","Skrappy","Bleeder","King Aracobb","Queen Tarantella","Hank Reiss","Pumpkinhead","Whiskey Wesely","Bigfoot","Redjack","Jackie O' Callahan","Franken Bill","Mr. Shank","General Knoxx","Hera","Minerva","Chaz","Motorhead","Skyscraper","Ajax","Ceresia","Helicon","Cluck-Trap","D-Fault"};
    			String[] Nodlc = {"Nine Toes","Bone Head","Roid Rage Psycho","Sledge","Krom","Taylor Kobb","Rakk Hive","Hanz and Franz","Baron Flynt","Master McCloud","Scar","Moe","Marley","Skagzilla","Mothrakk","Reaver","Slither","Rakkinishu","One-Eyed Jack","Helob","WidowMaker","Skrappy","Bleeder","King Aracobb","Queen Tarantella"};
    			String[] Weapons = {"Pistol","Shotgun","Sniper","Rifle","Machine Gun","Rocket Launcher","Eridian Weapon"};
    			String[] Char = {"Roland","Lilith","Mordecai","Brick"};
    			Random variable = new Random();
    			Scanner keyboard = new Scanner(System.in);
    			System.out.println("Welcome to the Borderlands Challenge Generator.");
    			System.out.println("Include DlC? (Use 0 for No, 1 for Yes).");
    			int User = keyboard.nextInt();
     
    				if (User == 1)
    					{
    						Boss = Bosses[variable.nextInt(44)];
    						Weapon = Weapons[variable.nextInt(7)];
    						Character = Char[variable.nextInt(4)];
     
     
    						System.out.println("Kill " + Boss + " With " + Character + " Using Only a " + Weapon + " In " + variable.nextInt(300) + " Minutes." );
    					}
     
    				else
    				{
    					Weapon = Weapons[variable.nextInt(7)];
    					Character = Char[variable.nextInt(4)];
    					Boss = Nodlc[variable.nextInt(25)];
    					System.out.println("Kill " + Boss + " With " + Character + " Using Only a " + Weapon + " In " + variable.nextInt(300) + " Minutes." );
     
    				}
    		}
     
    }
    this is what the challenge generator is. it generates a boss, a weapon, which character to use, and a time limit. theres the choice between include bosses from dlc aswell. What I want to do is include more variables such as bosses from a specific dlc, or changing out the some the variables entirely. I also want to give it a gui so its easily useable.

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: How hard would this be to write for a Beginner?

    You can omit the repeated lines of code. A pseudocode:
    while(playersInputIsInvalid) {
    	System.out.println("We have no idea what you meant!");
    	getPlayerSelectionAgain;
    }
    if(playerSelectsThis) {
    	boss = aBossFromThisSet;
    } else if(playerSelectsThat) {
    	boss = aBossFromThatSet;
    }
    weapon = aWeaponFromTheOnlySet;
    character = aCharacterFromTheOnlySet;
    System.out.println("Kill etc");

  6. The Following User Says Thank You to jps For This Useful Post:

    Bgriesh (August 6th, 2012)

  7. #6
    Junior Member
    Join Date
    Aug 2012
    Posts
    8
    My Mood
    Tired
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How hard would this be to write for a Beginner?

    Re-read that. Makes perfect sense and im an idiot.

    Should I use a While Loop to make the program repeatable?
    Last edited by Bgriesh; August 6th, 2012 at 07:40 PM.

  8. #7
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: How hard would this be to write for a Beginner?

    Quote Originally Posted by Bgriesh View Post
    Re-read that. Makes perfect sense and im an idiot.

    Should I use a While Loop to make the program repeatable?
    Sure you can. Post your code when you get it working, or a question otherwise. Good luck

  9. #8
    Junior Member
    Join Date
    Aug 2012
    Posts
    13
    Thanks
    0
    Thanked 7 Times in 4 Posts

    Default Re: How hard would this be to write for a Beginner?

    Pro tip : Read up on code organization and separation of concerns. Good luck.

Similar Threads

  1. very hard algorithm implementation
    By TheByt3 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 26th, 2012, 11:10 AM
  2. I am having a hard time with my code
    By SandeeBee in forum What's Wrong With My Code?
    Replies: 14
    Last Post: November 12th, 2011, 09:34 AM
  3. Beginner trying to write Java code, has issue w/ printing result and 2 decimals
    By flpanthers1 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 5th, 2011, 11:11 AM
  4. tick tack toe hard times!!
    By JpJ in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 12th, 2010, 08:15 AM
  5. [SOLVED] Very complex project. It's hard to explain.
    By javapenguin in forum What's Wrong With My Code?
    Replies: 55
    Last Post: November 4th, 2010, 11:30 AM

Tags for this Thread