hannoi

Version 1.0.0.0 (537 Bytes) by uu tsi
https://en.wikipedia.org/wiki/Tower_of_Hanoi
35 Downloads
Updated 9 Oct 2016

View License

>> hannoi(4)
将 1 号碟子从A ---> B
将 2 号碟子从A ---> C
将 1 号碟子从B ---> C
将 3 号碟子从A ---> B
将 1 号碟子从C ---> A
将 2 号碟子从C ---> B
将 1 号碟子从A ---> B
将 4 号碟子从A ---> C
将 1 号碟子从B ---> C
将 2 号碟子从B ---> A
将 1 号碟子从C ---> A
将 3 号碟子从B ---> C
将 1 号碟子从A ---> B
将 2 号碟子从A ---> C
将 1 号碟子从B ---> C

Cite As

uu tsi (2026). hannoi (https://uk.mathworks.com/matlabcentral/fileexchange/59615-hannoi), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0.0