Package vrampal.connectfour.cmdline

Examples of vrampal.connectfour.cmdline.GameRunner.run()


  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();
  }

  private ConnectFourRobot() {
    // Disabled default constructor.
  }
View Full Code Here


    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);
    }
View Full Code Here

    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

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

    consoleGame.run();
  }

  private final String robotPlayerName;

  private final GamesData rootData;
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.