Beispiel #1
0
 def divide(self):
     """divides a wall, building a living and and a dead end"""
     with Animated(False):
         Wall.divide(self)
         for tile in self.tiles:
             # update graphics because tiles having been
             # in kongbox in a previous game
             # might not be there anymore. This gets rid
             # of the cross on them.
             tile.graphics.update()
         # move last two tiles onto the dead end:
         return animate().addCallback(self.__placeLooseTiles2)
Beispiel #2
0
 def divide(self):
     """divides a wall, building a living and and a dead end"""
     with Animated(False):
         Wall.divide(self)
         for tile in self.tiles:
             # update graphics because tiles having been
             # in kongbox in a previous game
             # might not be there anymore. This gets rid
             # of the cross on them.
             tile.graphics.update()
         # move last two tiles onto the dead end:
         return animate().addCallback(self.__placeLooseTiles2)