Variations on a maze

From Maze

(Difference between revisions)
Jump to: navigation, search
(→Context: Computer Graphics and Games)
(→Patterns)
Line 63:Line 63:
=== Diagonals ===
=== Diagonals ===
−
[[Image:10print-diagonal.png|200px|thumb|10 PRINT CHR$(109+RND(1)*2); : GOTO 10]]
+
[[Image:10print-diagonal.png|100px|thumb|10 PRINT CHR$(109+RND(1)*2); : GOTO 10]]
By contrast, the maze output of 10 PRINT is oriented diagonally, giving it a distinctive visual look.
By contrast, the maze output of 10 PRINT is oriented diagonally, giving it a distinctive visual look.
Line 71:Line 71:
=== Orthogonal Weave ===
=== Orthogonal Weave ===
−
[[Image:10print-orthogonal-weave.png|200px|thumb|10 PRINT CHR$(102+RND(1)*2); : GOTO 10]]
+
[[Image:10print-orthogonal-weave.png|100px|thumb|10 PRINT CHR$(102+RND(1)*2); : GOTO 10]]
There are no other two characters in the [http://en.wikipedia.org/wiki/PETSCII PETSCII] data set that, when substituted for our "\" and "/", will result in the construction of a traditional orthogonal maze. Vertical and horizontal bars, for example, result in a disconnected weave, while solid and empty squares result in rough static.
There are no other two characters in the [http://en.wikipedia.org/wiki/PETSCII PETSCII] data set that, when substituted for our "\" and "/", will result in the construction of a traditional orthogonal maze. Vertical and horizontal bars, for example, result in a disconnected weave, while solid and empty squares result in rough static.
Line 77:Line 77:
=== Corners ===
=== Corners ===
−
[[Image:10print-elbows.png|200px|thumb|10 PRINT CHR$(108+(INT(RND(1)+.5)*3)); : GOTO 10]]
+
[[Image:10print-elbows.png|100px|thumb|10 PRINT CHR$(108+(INT(RND(1)+.5)*3)); : GOTO 10]]
Randomly selecting corner pieces such as "L", on the other hand, simply turn the image into a honeycomb.
Randomly selecting corner pieces such as "L", on the other hand, simply turn the image into a honeycomb.
Line 85:Line 85:
=== Four Walls ===
=== Four Walls ===
−
[[Image:10print-orthogonal-rough.png|200px|thumb|10 PRINT CHR$(181+(INT(RND(1)+.5)*3)+(INT(RND(1)+.5))); : GOTO 10]]
+
[[Image:10print-orthogonal-rough.png|100px|thumb|10 PRINT CHR$(181+(INT(RND(1)+.5)*3)+(INT(RND(1)+.5))); : GOTO 10]]
One of the most intuitive methods of constructing a maze-grid is to take an approach like graph paper, using four characters to signify either a top-wall, bottom-wall, left-wall or right-wall for each cell on the grid. Such characters exist in PETSCII in both "thick" and "thin" variants. Such a process is unfortunately less elegant, as these characters are never placed continuously in the PETSCII character set, and so cannot be addressed with a simple offset.
One of the most intuitive methods of constructing a maze-grid is to take an approach like graph paper, using four characters to signify either a top-wall, bottom-wall, left-wall or right-wall for each cell on the grid. Such characters exist in PETSCII in both "thick" and "thin" variants. Such a process is unfortunately less elegant, as these characters are never placed continuously in the PETSCII character set, and so cannot be addressed with a simple offset.
Line 95:Line 95:
=== Two Walls ===
=== Two Walls ===
−
[[Image:10print-orthogonal.png|200px|thumb|10 PRINT CHR$(181+(INT(RND(1)+.5)*3)); : GOTO 10]]
+
[[Image:10print-orthogonal.png|100px|thumb|10 PRINT CHR$(181+(INT(RND(1)+.5)*3)); : GOTO 10]]
−
 
== See Also ==
== See Also ==

Revision as of 18:31, 29 July 2010

View this revision of Variations on a maze.

Personal tools