//Imports packagesimportjava.io.*;importjava.lang.*;//class nameclass Parkour
//i think this is rightpublicvoidstatic main (String[] args )//These varibles have been declared right{String proname ="";String programq ="";char programa ="y";String programc ="";int Strength ="";int Agility ="";int Charisma ="";System.out.println("Sub Question 3");System.out.println("\nBy Harry Thompson cook");//And here's where the problem starts:System.out.println("\nTron:Parkour");System.out.print("\nWhat is your name:");//Hope i've done this rightInputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =newBufferedReader( isr );//All Good?try{
proname = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println("Invalid Name choose again program!");}System.out.println("\nWelcome"+ name);System.out.print("\nWe must go through some basic setup options, Proceed y/n?");InputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =new Bufferedreader( isr );try{
programq = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println("Invalid Input");}if(programq == programa){System.out.println("\n You have 10 energy point's");System.out.println("\n You can use these to upgrade either");System.out.println("\nStrength");System.out.println("\nAgility");System.out.println("\nOr Charisma");System.out.println("\nEach of these Qualties can help you out on your mission");System.out.println("\nStrength will help you out when the going get's tough");System.out.println("\nAgility makes it easier to run from fights and can help in infiltrating buildings");System.out.println("\nIf you choose Charisma you could use your looks to help you out in tough situation's");System.out.println("\nNow it is the time to choose what skills you want:");System.out.print("\nHow much energy will you give to strenth?");InputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =new Bufferedreader( isr );try{
Strength = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println(\n You must input a number!);}{}else{System.out.println("Setup Will Exit");}

So i know it's messy but if someone could help me out it would be very much appreciated.

Retro Man

June 16th, 2011, 12:26 AM

Retro Man

Re: Help with a Game that's gone wrong.

That smiley face should'nt be there!

June 16th, 2011, 01:39 AM

Junky

Re: Help with a Game that's gone wrong.

Quote:

Originally Posted by Retro Man

//And here's where the problem starts:

What problem?

Do you get errors? Then copy an paste the full error messages.
Do you get incorrect behaviour? Then describe what it should do and what it does do instead.

June 16th, 2011, 05:55 AM

JavaPF

Re: Help with a Game that's gone wrong.

Quote:

Originally Posted by Retro Man

That smiley face should'nt be there!

That's why you need to wrap your code in the highlight tags. Please see my signature. I've done it for you this time.

June 16th, 2011, 08:27 AM

william

Re: Help with a Game that's gone wrong.

Quote:

//And here's where the problem starts:

I don't see any problem. Please identify what it is that went wrong like Junky said.