예제 #1
0
 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)
예제 #2
0
 def canShiftLeft(self):
     return grid.canShiftLeft(self.grid)