Esempio n. 1
0
        //Deep copy of a GameBoard
        public GameBoard Copy()
        {
            //Needs to be a deep copy
            GameBoard newBoard = new GameBoard(this.xLength, this.yLength);

            newBoard.addPieces(AbstractPiece.Copy(this.pieces));

            return(newBoard);
        }
Esempio n. 2
0
 public static AbstractPiece Copy(AbstractPiece piece)
 {
     return(piece.Copy());
 }