Exemplo n.º 1
0
        public void CreateBoard(GameType gameType)
        {
            this.gameType = gameType;

            if (gameType == GameType.PlayerVsAI)
            {
                player1 = new Human();
                player2 = new AI();
            }
            else if (gameType == GameType.PlayerVsPlayer)
            {
                player1 = new Human();
                player2 = new Human();
            }
            else
            {
                player1 = new AI();
                player2 = new AI();
            }

            gameLogic = new GameLogicPlaceholder();
            UpdateBoard();
        }
Exemplo n.º 2
0
 public Common.Move MakeMove(GameLogicPlaceholder game)
 {
     return(Think());
 }
Exemplo n.º 3
0
 public void NewBoardState(GameLogicPlaceholder gameLogic)
 {
     this.gameLogic = gameLogic;
     UpdateBoard();
 }