public static void main(String[] args) { List<Gdl> description = GameRepository.getDefaultRepository().getGame("conn4").getRules(); PropNet theNetwork = CachedPropNetFactory.create(description); System.out.println("- - - - - - - - - -"); System.out.println("Network size: " + theNetwork.getComponents().size()); }
// TODO: This code should be put somewhere more general. public static void main(String args[]) { try { Gamer g = new ClojureLegalGamerStub(); System.out.println(g.getName()); Match m = new Match("", 1000, 1000, GameRepository.getDefaultRepository().getGame("conn4")); g.setMatch(m); g.setRoleName(GdlPool.getProposition(GdlPool.getConstant("xplayer"))); g.metaGame(1000); System.out.println(g.selectMove(1000)); } catch (Exception e) { e.printStackTrace(); } }