image thumbnail

hannoi

version 1.0.0.0 (537 Bytes) by uu tsi
https://en.wikipedia.org/wiki/Tower_of_Hanoi

34 Downloads

Updated 09 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 (2022). hannoi (https://www.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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!