Esempio n. 1
0
        /// <summary>Returns a read-only game from the original game.</summary>
        /// <param name="game">The game to copy and make read-only.</param>
        /// <returns>The read-only copy.</returns>
        public static CheckersGame MakeReadOnly(CheckersGame game)
        {
            CheckersGame result = game.Clone();

            result.isReadOnly = true;
            return(result);
        }
Esempio n. 2
0
 /// <summary>Returns a read-only game from the original game.</summary>
 /// <param name="game">The game to copy and make read-only.</param>
 /// <returns>The read-only copy.</returns>
 public static CheckersGame MakeReadOnly(CheckersGame game)
 {
     CheckersGame result = game.Clone();
     result.isReadOnly = true;
     return result;
 }