Class Game

java.lang.Object
  |
  +--Game

public class Game
extends java.lang.Object

This class holds the game board, initializes your player classes and calls your move methods to play the game

Since:
1.0

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

getAgentID

public 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
Parameters:
x - is the column which is to be inquired
y - is the row which is to be inquired
Returns:
an int value equal to the Agent id in the x,y position If the position is empty, it return -1