📄 hanoi.l
字号:
# 10nov04abu# (c) Software Lab. Alexander Burger# Lisp(de hanoi (N) (move N 'left 'center 'right) )(de move (N A B C) (unless (=0 N) (move (dec N) A C B) (println 'Move 'disk 'from 'the A 'to 'the B 'pole) (move (dec N) C B A) ) )# Pilog(be hanoi (@N) (move @N left center right) )(be move (0 @ @ @) T)(be move (@N @A @B @C) (@M - (-> @N) 1) (move @M @A @C @B) (@ println 'Move 'disk 'from 'the (-> @A) 'to 'the (-> @B) 'pole) (move @M @C @B @A) )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -