|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GameProblem<K extends AgentAction,S extends GameState>
A search problem appropriate for formally describing a game.
Parameterized on the specific type of AgentAction and GameState used in the game.
Method Summary | |
---|---|
S |
getInitialState()
Returns the initial state of the game board, and identifies which player will move. |
boolean |
isTerminalState(S state)
The terminal test, which determines when the game is over. |
java.util.Map<K,S> |
successorsFromState(S theState)
Returns a map identifying legal moves and the resulting state of each move. |
java.util.ArrayList<java.lang.Double> |
utilityForState(S terminalState)
Utility function returning a numeric rating for for each player, given a terminal state. |
Method Detail |
---|
S getInitialState()
java.util.Map<K,S> successorsFromState(S theState)
theState
- the state in which the action is performed
boolean isTerminalState(S state)
state
-
java.util.ArrayList<java.lang.Double> utilityForState(S terminalState)
terminalState
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |