Interface TwoPhaseMoveState<T>
- Type Parameters:
T
- represents the moves that can be applied to the states
- All Superinterfaces:
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 game whose moves are described by two objects,
i.e.,
from
and to
. From a user interface-centric viewpoint,
it is suitable for games where moves are made from a source location to a
target location. Thus, a move is specified in two phases each of which
requires a selection, e.g., two subsequent mouse clicks are required.-
Nested Class Summary
Nested classes/interfaces inherited from interface game.State
State.Player, State.Status
Nested classes/interfaces inherited from interface common.TwoPhaseMoveState
TwoPhaseMoveState.TwoPhaseMove<T>
-
Method Summary
Methods inherited from interface common.State
isLegalMove, makeMove
Methods inherited from interface game.State
getNextPlayer, getStatus, isGameOver, isWinner
Methods inherited from interface common.TwoPhaseMoveState
isLegalToMoveFrom