Tower of Hanoi (using k peg)
Project description
Tower of Hanoi (using k peg)
Usage (hanoi {disk#} {rod#}
)
See hanoi --help
$ hanoi 3 3
=
===
=====
0----------------
===
===== =
1----------------
===== === =
2----------------
=
===== ===
3----------------
=
=== =====
4----------------
= === =====
5----------------
===
= =====
6----------------
=
===
=====
7----------------
$ hanoi 3 4
=
===
=====
0----------------------
===
===== =
1----------------------
===== = ===
2----------------------
= === =====
3----------------------
===
= =====
4----------------------
=
===
=====
5----------------------
$ hanoi 4 4 --text
#1 disk 1 from 0 to 1
#2 disk 2 from 0 to 3
#3 disk 3 from 0 to 2
#4 disk 2 from 3 to 2
#5 disk 4 from 0 to 3
#6 disk 2 from 2 to 0
#7 disk 3 from 2 to 3
#8 disk 2 from 0 to 3
#9 disk 1 from 1 to 3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for k_peg_hanoi-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5972c2732b0cc9e78e7447a09fcb066aee6eab4062482248f787f68b11c1e783 |
|
MD5 | 3b2b6157f4ce86757dc3e0662b025a1f |
|
BLAKE2b-256 | b74c8528f67b53e40abb3902c44a0ae46c238f2a39d5d833fb624d2098864c4d |