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