Customization Variables for


Variables

open=open-char
Default: . (dot)
Character used to mark open (without obstacle) positions in maze.

blocked=blocked-char
Default: # (specify as %23)
Character used to mark blocked (those with an obstacle) positions in maze.

start=start-char
Default: S
Character used to mark starting position in maze.

goal=goal-char
Default: G
Character used to mark goal (end) position in maze.

path=path-char
Default: +
Character used to mark positions along a path being considered as a solution in maze.

badpath=badpath-char
Default: x
Character used to mark positions that were considered but rejected as being part of a solution in maze.
Note: The value of this character can affect how the maze algorithm runs. I.e., if you set it to the same character as the open character, it won't mark locations that it has visited before, and thus, may visit those locations more than once (although the algorithm will still eventually finish).

dirorder=direction-order-str
Default: NESW
A string representing the order in which to traverse the maze (N=North, E=East, S=South, W=West). Exactly 4 directions must be specified. They may be upper- or lowercase.

Example:

?blocked=*&path=@&open=%20

Note: Part of the web page allows users to enter a maze on which to run the algorithm. For entered mazes, whitespace at the end of lines is normally ignored, however, if any of the maze characters (see above) are set to whitespace (e.g., the space [%20]), then trailing whitespace will no longer be ignored.

See additional comments on using customization variables.


BU CAS CS - Customization Variables
Copyright © 1993-2000 by Robert I. Pitts <rip at bu dot edu>. All Rights Reserved.