edu.columbia.cs.coms4701.search.adversarial
Interface GamePlayingAgentProgram<K extends AgentAction,P extends AgentPercept,S extends GameState>

All Superinterfaces:
AgentProgram<K,P>

public interface GamePlayingAgentProgram<K extends AgentAction,P extends AgentPercept,S extends GameState>
extends AgentProgram<K,P>

Interface for AgentPrograms that play games. Such an agent should begin by posing a well-formed GameProblem to itself. Thereafter, it should:

Version:
0.1

User: aaron Date: Sep 28, 2006 Time: 6:47:52 AM

Author:
aaron@cs

Method Summary
 GameProblem<K,S> poseGameProblem()
          In this method, the agent poses the game problem to itself.
 S updateStateFromPercepts(S previousState, java.util.Set<P> newPercepts)
          Given a set of percepts and a previous state, returns a new current state.
 
Methods inherited from interface edu.columbia.cs.coms4701.agent.AgentProgram
getAuthor, getDescription, nextAction
 

Method Detail

poseGameProblem

GameProblem<K,S> poseGameProblem()
In this method, the agent poses the game problem to itself.

This is the initial step for any game-playing agent, done if the problem has not already been posed.

Returns:
a GameProblem specific to the type of game this agent plays

updateStateFromPercepts

S updateStateFromPercepts(S previousState,
                          java.util.Set<P> newPercepts)
Given a set of percepts and a previous state, returns a new current state.

Parameters:
previousState, - the last known state
newPercepts, - a set of new percepts
Returns:
a new state describing the current world