代写代考 CS15MazeSolverSupport;

package andybot;

import cs15.prj.andyBotSupport.CS15MazeSolverSupport;
import cs15.prj.andyBotSupport.CS15Robot;

Copyright By PowCoder代写 加微信 powcoder

public class MazeSolver extends CS15MazeSolverSupport {

* This is the constructor of the MazeSolver class.
public MazeSolver(CS15Robot andyBot) {
// **Please do not alter this part of the code**
this.solve(andyBot);

* The method can manipulate an andyBot instance to solve the maze.
public void solve(CS15Robot andyBot) {
Call move methods on the robot so that it knows which
steps to take
andyBot.moveUp(1);
andyBot.shuffleLeft(2);
andyBot.moveUp(2);
andyBot.shuffleLeft(1);
andyBot.moveUp(1);
andyBot.shuffleLeft(1);
andyBot.moveUp(2);
andyBot.shuffleRight(3);
andyBot.moveUp(2);
andyBot.shuffleRight(2);

TODO: Nest a call to getHint within a call to solveRoadBlock
so that the hint is passed to solveRoadBlock

//andyBot.solveRoadBlock(getHint());
andyBot.solveRoadBlock(getHint());

move up 2 more spaces to
complete the maze!
//andyBot.moveUp(2);

* Solves a roadblock using the passed in integer.
* //call enterPassword and pass in 4 times x, minus 6 as the argument

public void solveRoadBlock(int x){
enterPassword((4*x)-6);}

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com