Reward shaping function :
hold ball: zero-sum, +0.001 if team holds the ball('ball_owned_team' = 0), -0.001 if opponent holds the ball('ball_owned_team' = 1).
pass: +0.1 for each pass before a goal. This reward is added to scroing reward, because we just want to encourage passing which is helpful for the goal.
Had to modify gfootball core env to pass the actions to the compute reward function
Reward shaping function : hold ball: zero-sum, +0.001 if team holds the ball('ball_owned_team' = 0), -0.001 if opponent holds the ball('ball_owned_team' = 1). pass: +0.1 for each pass before a goal. This reward is added to scroing reward, because we just want to encourage passing which is helpful for the goal.
Had to modify gfootball core env to pass the actions to the compute reward function