public class BridgeMove extends Move
Constructor and Description |
---|
BridgeMove(java.lang.String moveName)
Constructs a new bridge move object.
|
Modifier and Type | Method and Description |
---|---|
State |
doMove(State otherState)
Attempts to perform this move on a given bridge state.
|
getMoveName
public BridgeMove(java.lang.String moveName)
moveName
- the name of this move.
It is an error if the name is not one of the following:
public State doMove(State otherState)