Example #1
0
 /**
  * @param p position we are asking about
  * @return bool - true if this figure is at position p - false if this figure is not at position p
  */
 public boolean isAtPosition(Position p) {
   if (p.sameColumn(this.pos) && p.sameRow(this.pos)) {
     return true;
   } else {
     return false;
   }
 }