ctf.agent
Class RandomAgent
java.lang.Object
|
+--ctf.agent.Agent
|
+--ctf.agent.RandomAgent
- public class RandomAgent
- extends Agent
A sample agent that makes completely random moves and doesn't
examine environment at all.
- Author:
- Jason Rohrer
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
numMovesTotal
static int numMovesTotal
RandomAgent
public RandomAgent()
getMove
public int getMove(AgentEnvironment inEnvironment)
- Description copied from class: Agent
- Gets the agent's next move. Implement this method in a class that
extends
Agent
.
- Overrides:
- getMove in class Agent
- Tags copied from class: Agent
- Parameters:
inEnvironment
- the current agent-centric environment state.- Returns:
- an action constant. Valid values are defined in
AgentAction
.