Examples of GameRunner


Examples of net.sf.nebulacards.comm.GameRunner

    } else {
      port = Integer.parseInt(portString);
    }

    ComManager cm = new ComManager(4);
    GameRunner gr = new GameRunner((Rules) ruleSet.newInstance(), cm);
   
    try {
      Serv server = new Serv(gr, cm, port);
      server.start();
    } catch (BindException e) {
View Full Code Here

Examples of vrampal.connectfour.cmdline.GameRunner

public class ConnectFourRobot {

  public static void main(String[] args) {
    ConsoleDiplay consoleDisplay = new ConsoleDiplay();
    PlayerInterface playerItf = new DummyBotPlayerInterface();
    GameRunner consoleGame = new GameRunner(playerItf, playerItf);
    consoleGame.addMonitor(consoleDisplay);
    consoleGame.run();
  }
View Full Code Here

Examples of vrampal.connectfour.cmdline.GameRunner

    PlayerInterface playerItf = new DummyBotPlayerInterface();

    long beginTime = System.currentTimeMillis();
    for (int i = 0; i < NB_TOTAL_GAME; i++) {
      GameRunner gameRunner = new GameRunner(playerItf, playerItf);
      gameRunner.run();

      Game game = gameRunner.getGame();
      Player winner = game.getWinner();
      analyeWinner(winner);
    }
    long endTime = System.currentTimeMillis();
View Full Code Here

Examples of vrampal.connectfour.cmdline.GameRunner

    GamesData rootData = new GamesData();
    PlayerInterface playerItf = new DummyBotPlayerInterface();

    long beginTime = System.currentTimeMillis();
    for (int i = 0; i < NB_TOTAL_GAME; i++) {
      GameRunner consoleGame = new GameRunner(playerItf, playerItf);
      GameDataFeeder dataFeed = new GameDataFeeder(rootData);
      consoleGame.addMonitor(dataFeed);
      consoleGame.run();
    }
    long endTime = System.currentTimeMillis();

    rootData.computeFullStats();
View Full Code Here

Examples of vrampal.connectfour.cmdline.GameRunner

    HumanPlayerInterface player1Itf = new HumanPlayerInterface();

    GamesData rootData = GamesData.loadFromDisk("LearningBotData.tmp");
    LearningBotPlayerInterface player2Itf = new LearningBotPlayerInterface("Red", rootData);

    GameRunner consoleGame = new GameRunner(player1Itf, player2Itf);
    consoleGame.addMonitor(player2Itf);
    consoleGame.addMonitor(consoleDisplay);

    consoleGame.run();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.