12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- class MovementException(Exception):
- pass
-
-
- class SamePosition(MovementException):
- pass
-
-
- class PheromoneException(Exception):
- pass
-
-
- class NoPheromone(PheromoneException):
- pass
-
-
- class NoPheromoneMove(PheromoneException, MovementException):
- pass
-
-
- class NoTypeInPheromone(NoPheromone):
- pass
-
-
- class NoCategoryInPheromone(NoPheromone):
- pass
-
-
- class BestPheromoneHere(PheromoneException):
-
- def __init__(self, best_distance, *args, **kwargs):
- super().__init__(*args, **kwargs)
- self._best_distance = best_distance
-
- def get_best_distance(self):
- return self._best_distance
-
-
- class BrainException(Exception):
- pass
-
-
- class BrainPartAlreadyExist(BrainException):
- pass
-
-
- class DirectionException(Exception):
- pass
|