Variations on a maze

From Maze

(Difference between revisions)
Jump to: navigation, search
Line 10:Line 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.
−
[[Image:10print-diagonal.png|thumb|align=left|200px|10 PRINT CHR$(109+RND(1)*2); : GOTO 10]]
+
[[Image:10print-diagonal.png|thumb|left|200px|10 PRINT CHR$(109+RND(1)*2); : GOTO 10]]
Several things about this visual orientation are surprising. First, when we visually trace the maze the long runs or paths that lead through the maze do not follow the lines along which the algorithm constructs the maze (which remains left-right, top-bottom). Second, this feature of being diagnol is not an elaboration in the code, but instead an elegant simplification that is part of the essence of the succinct one-liner.
Several things about this visual orientation are surprising. First, when we visually trace the maze the long runs or paths that lead through the maze do not follow the lines along which the algorithm constructs the maze (which remains left-right, top-bottom). Second, this feature of being diagnol is not an elaboration in the code, but instead an elegant simplification that is part of the essence of the succinct one-liner.

Revision as of 23:40, 28 July 2010

View this revision of Variations on a maze.

Personal tools