Python 3 | Greedy
When either of them makes a move, it does not affect the other person being able to make a move in any way, so it is enough to check how many moves they can mak
When either of them makes a move, it does not affect the other person being able to make a move in any way, so it is enough to check how many moves they can make. \n```\nclass Solution:\n    def winnerOfGame(self, colors: str) -> bool:\n        a,b = 0, 0\n        for i in range(1, len(colors) - 1):\n            if colors[i] == \'A\' and colors[i - 1] == \'A\' and colors[i + 1] == \'A\':\n                a += 1\n            if colors[i] == \'B\' and colors[i - 1] == \'B\' and colors[i + 1] == \'B\':\n                b += 1\n        return True if a > b else False\n```
['Greedy']