예제 #1
0
        public int Start()
        {
            OnTransferDisk?.Invoke(origem, auxiliar, destino, move);

            Transfer(origem, destino, auxiliar, discos);
            return(move);
        }
예제 #2
0
        private void MoveDisc(Stack <int> a, Stack <int> c, Stack <int> b)
        {
            move++;
            int d = a.Pop();

            c.Push(d);

            OnTransferDisk?.Invoke(origem, auxiliar, destino, move);
        }