Interface Player


public interface Player

This interface must me implemented by both your Player1 and Player2 classes.

Since:
1.0

Method Summary
 AgentPosition getInitialPosition(int agentNumber)
          This method gets the postition of an Agent
 AgentPosition move()
          This method moves one Agent one step up,down,left or right
 

Method Detail

getInitialPosition

public AgentPosition getInitialPosition(int agentNumber)
This method gets the postition of an Agent
Parameters:
agentNumber - The number of the agent whose position is required
Returns:
an AgentPosition instance for the agent

move

public AgentPosition move()
This method moves one Agent one step up,down,left or right
Returns:
an AgentPosition instance for the agent that was moved