Package vrampal.connectfour.cmdline

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


    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

    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

    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

Related Classes of vrampal.connectfour.cmdline.GameRunner

Copyright © 2018 www.massapicom. 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.