Piezas.cpp
Piece Piezas::pieceAt(int row, int column)
{
  //if row or column is out of bounds
  if(row >= BOARD_ROWS || column >= BOARD_COLS)
    return Invalid;

  //create temp piece and check if blank/X/O
  Piece temp = board[row][column];

  if(temp == X)
    return X;
  else if(temp == O)
    return O;
  else
    return Blank;
}
/**
 * Returns what piece is at the provided coordinates, or Blank if there
 * are no pieces there, or Invalid if the coordinates are out of bounds
**/
Returns what piece is at the provided coordinates, or Blank if there
are no pieces there, or Invalid if the coordinates are out of bounds
Returns what piece is at the provided coordinates or Blank if there are no pieces there or Invalid if the coordinates are out of bounds
Piece Piezas::pieceAt(int row, int column)
{
  if(row >= BOARD_ROWS || column >= BOARD_COLS)
    return Invalid;
  Piece temp = board[row][column];
  if(temp == X)
    return X;
  else if(temp == O)
    return O;
  else
    return Blank;
}
Piece Piezas :: pieceAt ( int row , int column ) { if ( row >= BOARD_ROWS || column >= BOARD_COLS ) return Invalid ; Piece temp = board [ row ] [ column ] ; if ( temp == X ) return X ; else if ( temp == O ) return O ; else return Blank ; }
Returns what piece is at the provided coordinates, or Blank if there
 are no pieces there, or Invalid if the coordinates are out of bounds
Returns what piece is at the provided coordinates or Blank if there are no pieces there or Invalid if the coordinates are out of bounds
//if row or column is out of bounds //create temp piece and check if blank/X/O