def __init__(self, town_map):
    ' Constructor of the environment town_map.\n        '
    self.STEP_REWARD = 0
    self.BANK_REWARD = 10
    self.CAUGHT_REWARD = (- 50)
    self.town_map = town_map
    self.initial_state = np.array([0, 0, 1, 2])
    self.actions = self.__actions()
    (self.states, self.map) = self.__states()
    self.n_actions = len(self.actions)
    self.n_states = len(self.states)
    self.transition_probabilities = self.__transitions()
    self.rewards = self.__rewards()
Constructor of the environment town_map.
def __init__(self, town_map):
    ' \n        '
    self.STEP_REWARD = 0
    self.BANK_REWARD = 10
    self.CAUGHT_REWARD = (- 50)
    self.town_map = town_map
    self.initial_state = np.array([0, 0, 1, 2])
    self.actions = self.__actions()
    (self.states, self.map) = self.__states()
    self.n_actions = len(self.actions)
    self.n_states = len(self.states)
    self.transition_probabilities = self.__transitions()
    self.rewards = self.__rewards()