/*Gwendolyn Buchanan
*2-9-12
*This program is the first that will have user input.  Kind of a prologue
*of the text-based RPG I plan on making.*/

import java.util.*;

public class turnLeftOrRight
{
	//initialize the keyboard
	Scanner reader = new Scanner (System.in)
	
	//create two new variables
	String turn = new String;
	String consequence = new String;
	
	public static void main (String [] args)
	{
		//ask user for input
		System.out.println("You are in a dungeon at a fork in th );
		System.out.println(" tunnel.  One way slopes down; the);
		System.out.println(" other leads up.  You have only one );
		System.out.println("torch left and no food; you need to );
		System.out.println("escape before it is too late.  Which );
		System.out.println("way do you choose?");
		
		reader.nextString;
		
		if turn = "left"
		{
			System.out.println("Sorry.  That was the wrong );
			System.out.println("choice.  You died.");
		}
		if turn = "right"
		{
			System.out.println("Sorry.  That way was wrong.  );
			System.out.println("Now you are dead.");
		}
	}
}