code: def has_castling_rights(self, color: Color) -> bool:
          
          backrank = BB_RANK_1 if color == WHITE else BB_RANK_8
          return bool(self.clean_castling_rights() & backrank)
docs: Checks if the given side has castling rights.