Commit f0409165 authored by drallensmith's avatar drallensmith

Testing version w/Reorient

parent e4d74cd7
...@@ -61,13 +61,11 @@ def test_with_server(): ...@@ -61,13 +61,11 @@ def test_with_server():
state = try_step() state = try_step()
for x in range(0,20): for x in range(0,25):
if int(state[12]) == 1: # can kick the ball if int(state[12]) == 1: # can kick the ball
hfo_env.act(hfo.DRIBBLE) hfo_env.act(hfo.DRIBBLE)
elif (x % 2) != 0: elif (state[50] < 0) or (state[0] < 0) or (state[1] < 0) or (state[54] < 0):
hfo_env.act(hfo.MOVE) hfo_env.act(hfo.REORIENT)
elif int(state[50]) == 1: # can see the ball
hfo_env.act(hfo.GO_TO_BALL)
else: else:
hfo_env.act(hfo.MOVE) hfo_env.act(hfo.MOVE)
......
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