Question: need help setting this up for javascript Inside the Maze.java class there are a series of methods that will help you: public int getWidth(): returns
need help setting this up for javascript
Inside the Maze.java class there are a series of methods that will help you: public int getWidth(): returns the width of the map public int getHeight(): returns the height of the map public int getDepth(): returns the depth of the map public int isExitSpace(int x, int y, int z): returns the camera located at (x,y,z) is the exit. public Node getStartingSpace(): returns a Node, which represents the starting chamber of the cave. public Node moveNorth(Node camaraCurrent): Returns a Node that represents the chamber of the caves to which you would move if you start from camaraCurrent to the north. If there is no northbound connection, return currentCamera. public Node moveSouth(Node currentCamera): Returns a Node that represents the chamber of the caves to which you would move if you start from currentCamera towards the south. If there is no northbound connection, return currentCamera. public Node moveWest(Node camaraCurrent): Returns a Node that represents the chamber of the caves to which you would move if you start from camaraCurrent to the west. If there is no northbound connection, return currentCamera. public Node moveEast(Node camaraCurrent): Returns a Node that represents the chamber of the caves to which you would move if you start from camaraCurrent to the east. If there is no northbound connection, return currentCamera. public Node moveUp(Node camaraActual): Returns a Node that represents the chamber of the caves to which you would move if you start from camaraCurrent upwards. If there is no northbound connection, return currentCamera. public Node moveDown(Node currentCamera): Returns a Node that represents the chamber of the caves to which you would move if you start from currentCamera downwards. If there is no northbound connection, return currentCamera. Finally, we also introduce you to the Node. This is the data structure that holds the information for each chamber in the cave. Among the methods that you may find useful, this: public int getId() returns a unique identifier that represents the ID of each camera in the cave. The isExit attribute (used node.isExit) returns true if the evaluated node is the cave exit, and false if it is not.Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
