Untitled
unknown
plain_text
2 years ago
784 B
4
Indexable
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(); } } }
Editor is loading...