Example #1
0
        public marble addNewAsCurrent(int valueIn)
        {
            marble newMarble = new marble();

            newMarble.initiate(clockwise.getClockwise(), clockwise, valueIn);
            clockwise.setClockwise(newMarble);
            return(newMarble);
        }
Example #2
0
 public marble remove(int time)
 {
     //Console.WriteLine();
     // Console.Write(value);
     if (time == 0)
     {
         clockwise.setCounterClockwise(counterClockwise);
         counterClockwise.setClockwise(clockwise);
         return(this);
     }
     else
     {
         return(counterClockwise.remove(time - 1));
     }
 }