![]() ![]() Returns as a hash the attributes of the maze object. describe %maze_attributes = $obj->describe() You should not normally need to call this method, as the other methods will call it when needed. Resets the maze cells to their clean, unbroken state. unsolve $obj->unsolve() Įrase the path from the maze that was created by the solve() method. ![]() solve $obj->solve() įinds a solution to the maze by examining a path until a dead end is reached. Perform a random walk through the walls of the grid. A simply-connected maze has only one path between any two points a multiply-connected maze has one or more paths. ![]() The method used to generate the paths of the maze. The direction values are available by using their variable names: $Games::Maze::North, $Games::Maze::NorthWest, $Games::Maze::West, et cetera. This would mean that first_dir() would always return North unless it wasn't on the list, whereupon the next available direction would be tried. If all directions were available, they would be passed in almost-sorted order: for cell =>'Quad' mazes, for cell => 'Hex' mazes. Currently 'Rectangle' is the valid for all mazes, 'Hexagon' is valid for the Current attributes are: 'form'ĭefault value: 'Rectangle'. Maze Object Methods new()Ĭreates the object with its attributes. Mazes are objects that you can manipulate using the available methods. You may use the Games::Maze package to create 3-dimensional rectangular or hexagonal mazes. Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.Games::Maze - Create Mazes as Objects. This tag should then have its "mode" attribute set to "Off". It could, however, be viewed by browsers running on the local server machine.ĭetails: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). Runtime Error Description: An application error occurred on the server. Runtime Error Server Error in '/' Application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |