Package vrampal.connectfour.cmdline

Examples of vrampal.connectfour.cmdline.ConsoleDiplay


import vrampal.connectfour.cmdline.PlayerInterface;

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


class LearningBotPlayerInterface implements PlayerInterface, GameMonitor {

  private static final Random RAND = new Random();

  public static void main(String[] args) throws ClassNotFoundException, IOException {
    ConsoleDiplay consoleDisplay = new ConsoleDiplay();
    HumanPlayerInterface player1Itf = new HumanPlayerInterface();

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

TOP

Related Classes of vrampal.connectfour.cmdline.ConsoleDiplay

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.