Commit 91a48115 authored by drallensmith's avatar drallensmith

Below -1 is supposed to be signal for invalid, not below -2

parents 49730ae5 435af1ad
...@@ -85,7 +85,7 @@ def do_defense_action(state_vec, hfo_env, episode, ...@@ -85,7 +85,7 @@ def do_defense_action(state_vec, hfo_env, episode,
ball_pos_y = state_vec[4] ball_pos_y = state_vec[4]
# if get high_level working for invalid # if get high_level working for invalid
if (min(agent_pos_x,agent_pos_y,ball_pos_x,ball_pos_y) < -2): if (min(agent_pos_x,agent_pos_y,ball_pos_x,ball_pos_y) < -1):
hfo_env.act(hfo.REORIENT) hfo_env.act(hfo.REORIENT)
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment