public marble addNewAsCurrent(int valueIn) { marble newMarble = new marble(); newMarble.initiate(clockwise.getClockwise(), clockwise, valueIn); clockwise.setClockwise(newMarble); return(newMarble); }
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)); } }