Commit 1f507b72 authored by drallensmith's avatar drallensmith

Fixed - hopefully - other python agents from having endless loop; now may be...

Fixed - hopefully - other python agents from having endless loop; now may be possible to add python testing to .travis.yml
parent b7f3cdfa
...@@ -36,7 +36,7 @@ def main(): ...@@ -36,7 +36,7 @@ def main():
# Quit if the server goes down # Quit if the server goes down
if status == SERVER_DOWN: if status == SERVER_DOWN:
hfo.act(QUIT) hfo.act(QUIT)
break exit()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
...@@ -29,7 +29,7 @@ def main(): ...@@ -29,7 +29,7 @@ def main():
# Quit if the server goes down # Quit if the server goes down
if status == SERVER_DOWN: if status == SERVER_DOWN:
hfo.act(QUIT) hfo.act(QUIT)
break exit()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
...@@ -29,7 +29,7 @@ def main(): ...@@ -29,7 +29,7 @@ def main():
# Quit if the server goes down # Quit if the server goes down
if status == SERVER_DOWN: if status == SERVER_DOWN:
hfo.act(QUIT) hfo.act(QUIT)
break exit()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
...@@ -56,7 +56,7 @@ def get_action(state,hfo_env,num_teammates): ...@@ -56,7 +56,7 @@ def get_action(state,hfo_env,num_teammates):
hfo_env.act(DRIBBLE) hfo_env.act(DRIBBLE)
return return
# If nothing can be done pass # If nothing can be done pass
hfo_env.act(PASS) hfo_env.act(PASS) # doesn't this require a target teammate?
def main(): def main():
......
...@@ -32,7 +32,7 @@ def main(): ...@@ -32,7 +32,7 @@ def main():
# Quit if the server goes down # Quit if the server goes down
if status == SERVER_DOWN: if status == SERVER_DOWN:
hfo.act(QUIT) hfo.act(QUIT)
break exit()
if __name__ == '__main__': if __name__ == '__main__':
main() main()
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