/*
  * Represents the AI.
  * @constructor
  * @param {IGetInput<char[,]>} iGetInput - Gets the ComputerInput.
  */
 public ComputerPlayer(IGetInput <char[, ]> iGetInput)
 {
     mark       = Marks.Nought;
     _iGetInput = iGetInput;
     miniMax    = new MiniMaxAlgo();
     board      = _iGetInput.GetGameBoardSquare();
 }
Exemple #2
0
        /**
         * Gets the board square to place a marker.
         */
        public Position MakeMove()
        {
            var boardSquare = _iGetInput.GetGameBoardSquare();

            return(converter.ConvertSquareToPosition(boardSquare));
        }