Пример #1
0
    def set_position(self, value):
        refresh_nb = False
        self.next_direction = None

        if self._position != value:
            refresh_nb = True
        self._position = tuple(value)
        if refresh_nb:
            self.neighbours_position = Lattice.get_neighbours(tuple(value))