public int Start() { OnTransferDisk?.Invoke(origem, auxiliar, destino, move); Transfer(origem, destino, auxiliar, discos); return(move); }
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); }