PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Chassis.java

http://guzengo.googlecode.com/
Java | 25 lines | 8 code | 4 blank | 13 comment | 1 complexity | 64da2470b3877d1599aef25f141483f7 MD5 | raw file
 1/**
 2 * Chassis is the framework on which the go engine and interface sit.
 3 * The idea is to develop the engine and interface as swappable modules.
 4 * Support for a file reader module might be nice too (SGF, etc)
 5 */
 6class Chassis {
 7  public static void main(String[] args) {
 8    if(args.length>0) {
 9      System.out.println("Command line parameters detected!"); // User is trying to do something
10    }
11    
12	//test 2
13    // initialize engine
14      // must be done before interface in case interface checks version etc
15    
16    // start a game and loop til game end
17      // invoke interface to get next command
18      // check command from interface, if any
19      // invoke engine, if required
20      // invoke interface to respond, if required
21      
22    System.out.println("Done.");
23    
24  }
25}