/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. */
  6. class 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. //test 2
  12. // initialize engine
  13. // must be done before interface in case interface checks version etc
  14. // start a game and loop til game end
  15. // invoke interface to get next command
  16. // check command from interface, if any
  17. // invoke engine, if required
  18. // invoke interface to respond, if required
  19. System.out.println("Done.");
  20. }
  21. }