|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Hanoi Challengeby fruiture (Curate) |
| on Oct 22, 2004 at 18:13 UTC ( #401613=note: print w/ replies, xml ) | Need Help?? |
|
Well, no idea if this is very efficient, but it seems to solve all situations (the hanoi-driver does not complain) and is based on your code, just generalized.
Update: Well, it is absolutely NO more efficient than using 3 pegs anyway, but at least it works.
-- http://fruiture.de
In Section
Meditations
|
|
||||||||||||||||||||||