code: def store_shot(self):
          
          def to_str(cregs):
              return ''.join(str(b) for b in cregs)
          key = to_str(self.cregs)
          self.shots_result[key] = self.shots_result.get(key, 0) + 1
docs: Store current cregs to shots_result