Variations on a maze
From Maze
(Difference between revisions)
| Line 6: | Line 6: | ||
[[Image:Atari2600-maze_craze.png|thumb|200px]] | [[Image:Atari2600-maze_craze.png|thumb|200px]] | ||
| − | [[Image:Outlaw Star.jpg|thumb|240px|The ''Outlaw Star'']] | ||
| − | |||
One common feature of the many different maze games from the period is orientation: all both rectilinear and aligned to the Cartesian axes. Different examples have their own aesthetics -- Pac Man partitions the screen space into an open field a indirect routes, Maze Craze creates a traditional full-screen overview with a single solution, while Adventure produces a claustrophobic view in which only part of the impossibly wrapping maze topology is visible at any time -- usually nearby but inaccessible paths. What all have in common is that they are constructed of horizontal/vertical walls that are orthogonal to the edges of the screen and the scan line of the display. | One common feature of the many different maze games from the period is orientation: all both rectilinear and aligned to the Cartesian axes. Different examples have their own aesthetics -- Pac Man partitions the screen space into an open field a indirect routes, Maze Craze creates a traditional full-screen overview with a single solution, while Adventure produces a claustrophobic view in which only part of the impossibly wrapping maze topology is visible at any time -- usually nearby but inaccessible paths. What all have in common is that they are constructed of horizontal/vertical walls that are orthogonal to the edges of the screen and the scan line of the display. | ||
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. | ||
| − | 10 PRINT CHR$(109+RND(1)*2); : GOTO 10 | + | [[Image:10print-diagonal.png|thumb|200px|10 PRINT CHR$(109+RND(1)*2); : GOTO 10]] |
| − | |||
| − | [[Image:10print-diagonal.png|200px]] | ||
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. | ||
