robinzon_env.py
def _get_reward(self):
        """ Reward is given for scoring a goal. """
        if self.alive:
            if (self.boat == 0):
                return 100
            elif (self.res_water >= 0): #and (self.res_food >= 0):
                return 1
            else:
                return -1
        else:
            return -1000
 Reward is given for scoring a goal. 
Reward is given for scoring a goal.
Reward is given for scoring a goal .
def _get_reward(self):
        if self.alive:
            if (self.boat == 0):
                return 100
            elif (self.res_water >= 0): 
                return 1
            else:
                return -1
        else:
            return -1000
def _get_reward ( self ) : if self . alive : if ( self . boat == 0 ) : return 100 elif ( self . res_water >= 0 ) : return 1 else : return - 1 else : return - 1000
Reward is given for scoring a goal.
Reward is given for scoring a goal .
""" Reward is given for scoring a goal. """ #and (self.res_food >= 0):
self