comefrom: <doocs>2038.Remove Colored Pieces if Both Neighbors are the Same Color_1.py
code: def winnerOfGame( colors: str) -> bool:
      a = b = 0
      cnt1 = cnt2 = 0
      for c in colors:
          if c == 'A':
              a += 1
              if a > 2:
                  cnt1 += 1
              b = 0
          else:
              b += 1
              if b > 2:
                  cnt2 += 1
              a = 0
      return cnt1 > cnt2
masked: def sample_funcname ( var_0 : str ) -> bool :
      var_5 = var_3 = 0
      var_7 = var_6 = 0
      for var_8 in var_0 :
          if var_8 == 'A' :
              var_5 += 1
              if var_5 > 2 :
                  var_7 += 1
              var_3 = 0
          else :
              var_3 += 1
              if var_3 > 2 :
                  var_6 += 1
              var_5 = 0
      return var_7 > var_6
  