Ejemplo n.º 1
0
        /// <summary>
        /// Apply a move in a board
        /// </summary>
        /// <param name="move">a given move</param>
        /// <returns>A tree node with the applied operator</returns>
        public TreeNode ApplyOp(Tuple <int, int> move)
        {
            OthelloBoard newOB = new OthelloBoard(board.GetBoard()); // Make a copy of the board

            newOB.PlayMove(move.Item1, move.Item2, isWhitePlayer);
            return(new TreeNode(newOB, !isWhitePlayer));
        }