public abstract class MazeSolvingAlgorithm
extends java.lang.Object
Constructor and Description |
---|
MazeSolvingAlgorithm(PlayerStateForMazeAlgo playerState) |
Modifier and Type | Method and Description |
---|---|
protected abstract Direction |
decide()
This method decides in which direction the player should go.
|
PlayerStateForMazeAlgo |
getPlayerState() |
void |
move()
This method calls decide() to decide in which
direction to go.
|
public MazeSolvingAlgorithm(PlayerStateForMazeAlgo playerState)
protected abstract Direction decide()
public final void move() throws PlayerCannotMoveException
PlayerCannotMoveException
public PlayerStateForMazeAlgo getPlayerState()