⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maze.l

📁 A very small LISP implementation with several packages and demo programs.
💻 L
字号:
# 21jan07abu# (c) Software Lab. Alexander Burger# ./p dbg.l maze.l -"setq M (maze 16 10)" -"display M"(load "lib/simul.l")(de maze (DX DY)   (let Maze (grid DX DY)      (let Fld (get Maze (rand 1 DX) (rand 1 DY))         (recur (Fld)            (for Dir (shuffle '((west . east) (east . west) (south . north) (north . south)))               (with ((car Dir) Fld)                  (unless (or (: west) (: east) (: south) (: north))                     (put Fld (car Dir) This)                     (put This (cdr Dir) Fld)                     (recurse This) ) ) ) ) )      (for Col Maze         (for This Col            (set This               (cons                  (cons (: west) (: east))                  (cons (: south) (: north)) ) )            (=: west)            (=: east)            (=: south)            (=: north) ) )      Maze ) )(de display (Maze)   (disp Maze 0 '((This) "   ")) )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -