Maze generation: Difference between revisions
Content added Content deleted
(Updated D entry (again)) |
(→{{header|TXR}}: Use put-line, put-string and quasistrings instead of format calls.) |
||
Line 4,711: | Line 4,711: | ||
(each ((i (range* 0 w))) |
(each ((i (range* 0 w))) |
||
(if (memqual i..(- j 1) [pa i..j]) |
(if (memqual i..(- j 1) [pa i..j]) |
||
( |
(put-string "+ ") |
||
( |
(put-string "+----"))) |
||
( |
(put-line "+")) |
||
(defun print-sides (pa w j) |
(defun print-sides (pa w j) |
||
Line 4,721: | Line 4,721: | ||
(set str `@str `) |
(set str `@str `) |
||
(set str `@str| `))) |
(set str `@str| `))) |
||
( |
(put-line `@str|\n@str|`))) |
||
(defun print-maze (pa w h) |
(defun print-maze (pa w h) |