isAttacked(sq, color) {
    return (
      this.isAttackedByPawn(sq, color) ||
      this.isAttackedByRook(sq, color) ||
      this.isAttackedByKnight(sq, color) ||
      this.isAttackedByElephant(sq, color) ||
      this.isAttackedByCannon(sq, color)
    );
  }
// (King) Never attacked by advisor, since it stays in the palace
(King) Never attacked by advisor, since it stays in the palace
( King ) Never attacked by advisor since it stays in the palace
isAttacked(sq, color) {
    return (
      this.isAttackedByPawn(sq, color) ||
      this.isAttackedByRook(sq, color) ||
      this.isAttackedByKnight(sq, color) ||
      this.isAttackedByElephant(sq, color) ||
      this.isAttackedByCannon(sq, color)
    );
  }
isAttacked ( sq , color ) { return ( this . isAttackedByPawn ( sq , color ) || this . isAttackedByRook ( sq , color ) || this . isAttackedByKnight ( sq , color ) || this . isAttackedByElephant ( sq , color ) || this . isAttackedByCannon ( sq , color ) ) ; }
(King) Never attacked by advisor, since it stays in the palace
( King ) Never attacked by advisor since it stays in the palace