Esempio n. 1
0
 public object Clone()
 {
     return(new Square(Location.Row, Location.Column, NorthWall, EastWall, SouthWall, WesthWall)
     {
         Marble = (Marble)Marble?.Clone(),
         Hole = (Hole)Hole?.Clone()
     });
 }
Esempio n. 2
0
 public void AddMarble(Marble marble)
 {
     this.Marble = marble;
 }