Esempio n. 1
0
        public static Tower TowerRingBuilder(Tower tower, uint height)
        {
            while (height > 0)
            {
                tower.Rings.Push(Ring.CreateRing(height));

                height--;
            }

            return tower;
        }
Esempio n. 2
0
        public void MoveTopToTower(Tower dest)
        {
            int move = Disks.Pop();

            dest.Add(move);
        }