Variations on a maze
From Maze
(Difference between revisions)
| Line 26: | Line 26: | ||
10 PRINT CHR$(108+(INT(RND(1)+.5)*3)); : GOTO 10 | 10 PRINT CHR$(108+(INT(RND(1)+.5)*3)); : GOTO 10 | ||
| + | [[Image:10print-elbows.png|200px]] | ||
| + | |||
As it turns out, diagonal mazes are symbolically efficient on a Cartesian grid due to the fact that four characters meet at the corners, whereas only two meet along an edge. Thus, intersections of up to four lines (the building blocks of a rectilinear maze) can be created at corners if we use diagonal lines. | As it turns out, diagonal mazes are symbolically efficient on a Cartesian grid due to the fact that four characters meet at the corners, whereas only two meet along an edge. Thus, intersections of up to four lines (the building blocks of a rectilinear maze) can be created at corners if we use diagonal lines. | ||
