| Not *quite* sure what your asking, but instead of having it display "your hot", have a variable temperature or whatever to store if their hot, warm or cold. Also, dont use strings for each direction, just make 1 direction string, and set it to whatever direction they need to go. Finally, do something like System.out.println( "Your " + temperature + "! Move " + direction);
?
Edit: Also, to save even more typing, have it check north and south first, set the string equal to whichever, then seperatly check east and west, and have it append that choice, so you get a string that for instance will look like "north west" to avoid checking for all 8 directions.
Last edited by Zuuljin : 02-08-2007 at 10:53 PM.
|