isAttacked(sq, color) {
    return (
      this.isAttackedByPawn(sq, color) ||
      super.isAttackedByRook(sq, color) ||
      this.isAttackedByKnight(sq, color) ||
      this.isAttackedByCannon(sq, color)
    );
  }
// Also, never attacked by elephants since they don't cross the river.
Also, never attacked by elephants since they don't cross the river.
Also never attacked by elephants since they don ' t cross the river .
isAttacked(sq, color) {
    return (
      this.isAttackedByPawn(sq, color) ||
      super.isAttackedByRook(sq, color) ||
      this.isAttackedByKnight(sq, color) ||
      this.isAttackedByCannon(sq, color)
    );
  }
isAttacked ( sq , color ) { return ( this . isAttackedByPawn ( sq , color ) || super . isAttackedByRook ( sq , color ) || this . isAttackedByKnight ( sq , color ) || this . isAttackedByCannon ( sq , color ) ) ; }
Also, never attacked by elephants since they don't cross the river.
Also never attacked by elephants since they don ' t cross the river .