Easy Python
\nclass Solution:\n    def winnerOfGame(self, colors: str) -> bool:\n        def continuous_pieces(color):\n            ans = cur = 0\n            for c in colo
```\nclass Solution:\n    def winnerOfGame(self, colors: str) -> bool:\n        def continuous_pieces(color):\n            ans = cur = 0\n            for c in colors:\n                if c == color:\n                    cur += 1\n                else:\n                    if cur > 2: \n                        ans += cur - 2\n                    cur = 0\n            if colors[-1] == color and cur > 2: ans += cur - 2\n            return ans\n        \n        alice = continuous_pieces(\'A\')\n        bob = continuous_pieces(\'B\')\n        return alice > 0 and alice > bob\n```
[]