/* * 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(); }
/** * Gets the board square to place a marker. */ public Position MakeMove() { var boardSquare = _iGetInput.GetGameBoardSquare(); return(converter.ConvertSquareToPosition(boardSquare)); }