Exemplo n.º 1
0
 def shiftRight(self):
     if grid.canShiftRight(self.grid):
         return Game(grid.shiftRight(self.grid, self.rng.random(), self._nextTile()), self.stack, self.rng)
     else:
         return Game(grid.copy(self.grid), self.stack, self.rng)
Exemplo n.º 2
0
 def canShiftRight(self):
     return grid.canShiftRight(self.grid)