From instruction: Draw a straight line and follow it
Code: DrawAStraightLineAndFollowIt -- after Crowther and Woods by tgdavies
This should really be written in Inform 7
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class DrawAStraightLineAndFollowIt { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); while (true) { System.out.print("You see a straight line, which continues to the North\n> "); in.readLine(); } } }
[download]
Written in Java. Released under the MIT License license