Java text based games.

I am completely new to java, and i was wondering if anyone can give me any pointes as to where i might find help for making text based games in java, somewhere along the lines of zork etc.Any help would be appreciated.
[232 byte] By [R3VOGAMERa] at [2007-10-2 3:51:48]
# 1

Ok, text based games need lot's of loops and descision structers. I assume you know how to declare primitive data types already? Try something like this for the computer to accept input of a character, and give a response accordingly.

public class Game

{

public static void main(String[]args)throws Exception

{

System.out.println("Do you like Java? Y for yes, N for no.");

char input;

input = (char)System.in.read();

if(input.equalsIgnoreCase("y")

System.out.println("Me to!");

if(input.equalsIgnoreCase("n")

System.out.println("Too bad...");

}

}

Rais.ta at 2007-7-15 23:08:03 > top of Java-index,Other Topics,Java Game Development...