def shiftLeft(self): if grid.canShiftLeft(self.grid): return Game(grid.shiftLeft(self.grid, self.rng.random(), self._nextTile()), self.stack, self.rng) else: return Game(grid.copy(self.grid), self.stack, self.rng)
def canShiftLeft(self): return grid.canShiftLeft(self.grid)