java.lang.Object | +--Game
This class holds the game board, initializes your player classes and calls your move methods to play the game
| Method Summary | |
static int |
getAgentID(int x,
int y)
This method can be used at any time to find out which Agent is at any position on the board |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static int getAgentID(int x,
int y)
x - is the column which is to be inquiredy - is the row which is to be inquiredint value equal to the Agent id in the x,y position
If the position is empty, it return -1