(self, physics)
Returns a reward to the agent.
Returns a reward to the agent.
Returns a reward to the agent .
def get_reward(self, physics):
    """Returns a reward to the agent."""
    if self._use_peg:
      return self._peg_reward(physics)
    else:
      return self._ball_reward(physics)
def get_reward ( self , physics ) : if self . _use_peg : return self . _peg_reward ( physics ) else : return self . _ball_reward ( physics )