public class MazeSolver
extends java.lang.Object
Constructor and Description |
---|
MazeSolver(CS15Robot andyBot)
This is the MazeSolver's constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
enterPassword(int password)
A SUPPORT method, used to submit a password to solve the roadblock.
|
int |
getHint()
A SUPPORT method that returns a random int.
|
void |
solve(CS15Robot andyBot)
A STENCIL method where you should call methods on your CS15Robot instance
to move it.
|
void |
solveRoadBlock(int x)
A STENCIL method where you should call enterPassword to get past the road block.
|
public MazeSolver(CS15Robot andyBot)
andyBot
- An instance of a CS15Robot to solve the mazepublic void enterPassword(int password)
password
- An integer from the mathematical expressionpublic int getHint()
public void solve(CS15Robot andyBot)
andyBot
- An instance of CS15Robot to solve the mazepublic void solveRoadBlock(int x)
x
- An integer returned from calling getHint()