Beispiel #1
0
 /**
  * Takes in 0-indexed coordinates and outputs the type of token
  * placed at coordinates of the yz projection
  *
  * @param
  *   int y - 0-indexed y coordinate
  *   int z - 0-indexed z coordinate
  * @returns
  *   int - 0 if no token is placed
  *         1 if the token placed belongs to player 1
  *         2 if the token placed belongs to player 2
  */
 public int getyzToken(int y, int z)
 {
     return(boardyz.getToken(y, z));
 }
Beispiel #2
0
 /**
  * Takes in 0-indexed coordinates and outputs the type of token
  * placed at coordinates of the xz projection
  *
  * @param
  *   int x - 0-indexed x coordinate
  *   int z - 0-indexed z coordinate
  * @returns
  *   int - 0 if no token is placed
  *         1 if the token placed belongs to player 1
  *         2 if the token placed belongs to player 2
  */
 public int getxzToken(int x, int z)
 {
     return(boardxz.getToken(x, z));
 }
Beispiel #3
0
 /**
  * Takes in 0-indexed coordinates and outputs the type of token
  * placed at coordinates of the xy projection
  *
  * @param
  *   int x - 0-indexed x coordinate
  *   int y - 0-indexed y coordinate
  * @returns
  *   int - 0 if no token is placed
  *         1 if the token placed belongs to player 1
  *         2 if the token placed belongs to player 2
  */
 public int getxyToken(int x, int y)
 {
     return(boardxy.getToken(x, y));
 }