Beispiel #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();
        }
Beispiel #2
0
 public Common.Move MakeMove(GameLogicPlaceholder game)
 {
     return(Think());
 }
Beispiel #3
0
 public void NewBoardState(GameLogicPlaceholder gameLogic)
 {
     this.gameLogic = gameLogic;
     UpdateBoard();
 }