Untitled
unknown
plain_text
a year ago
784 B
0
Indexable
Never
package byow.Core; /** This is the main entry point for the program. This class simply parses * the command line inputs, and lets the byow.Core.Engine class take over * in either keyboard or input string mode. */ import byow.TileEngine.TETile; public class Main { public static void main(String[] args) { if (args.length > 1) { System.out.println("Can only have one argument - the input string"); System.exit(0); } else if (args.length == 1) { Engine engine = new Engine(); TETile[][] world = engine.interactWithInputString(args[0]); System.out.println(TETile.toString(world)); } else { Engine engine = new Engine(); engine.interactWithKeyboard(); } } }