help for hanoitower

Play Tower of Hanoi in Stata

hanoitwoer provide demos of Tower of Hanoi in Stata.

Syntax

hanoi #1 [#2], [fig]

#1 specify the number of disks

#2 specify the sleep time for each step;
by default, it is 1000ms

fig show the figures

Examples

.hanoitower 10 1000

.hanoitower 5, fig

.qui hanoitower 3 2000, fig

Authors

Kerry Du, School of Management, Xiamen University, China.

E-mail: kerrydu@xmu.edu.cn.