Interface TwoPhaseMoveState<T>

Type Parameters:
T - represents the type of the source and the target of the moves
All Superinterfaces:
Cloneable, State<TwoPhaseMoveState.TwoPhaseMove<T>>, State<TwoPhaseMoveState.TwoPhaseMove<T>>, TwoPhaseMoveState<T>

public interface TwoPhaseMoveState<T> extends State<TwoPhaseMoveState.TwoPhaseMove<T>>, TwoPhaseMoveState<T>
Represents the state of a puzzle whose moves are described by two objects, i.e., from and to. From a user interface-centric viewpoint, it is suitable for puzzles where moves are made from a source to a target location. Thus, a move is specified in two phases, each requiring a selection, e.g., two subsequent mouse clicks are needed.
  • Method Details

    • clone

      Description copied from interface: State
      Returns a copy of the state.
      Specified by:
      clone in interface State<T>
      Returns:
      a copy of the state