public abstract class Move
extends java.lang.Object
Constructor and Description |
---|
Move(java.lang.String moveName)
Creates a problem move, storing the move name.
|
Modifier and Type | Method and Description |
---|---|
abstract State |
doMove(State state)
Performs this move on a given state.
|
java.lang.String |
getMoveName()
Accessor for this move's name.
|
public Move(java.lang.String moveName)
moveName
- the user command for this move.public abstract State doMove(State state)
state
- an existing statepublic java.lang.String getMoveName()