diff options
author | SpitfireX <timm.weber@me.com> | 2015-08-10 18:36:30 +0200 |
---|---|---|
committer | SpitfireX <timm.weber@me.com> | 2015-08-10 18:36:30 +0200 |
commit | 72de6605c7553a49d2688331dd9b2298c354ba48 (patch) | |
tree | 0ca840e88149bdfab4ee4fe4f89a239408af8d17 | |
parent | 5cecd692d0718b452b5e9f25c58187aaa2a04c0b (diff) |
Added some clearer console output
-rw-r--r-- | main.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -56,7 +56,7 @@ while True: runaway_x, runaway_y = (c.player.center[0]+int(100*runaway_x / runaway_r)), (c.player.center[1]+int(100*runaway_y / runaway_r)) c.send_target(runaway_x, runaway_y) - print (str((runaway_x-c.player.center[0], runaway_y-c.player.center[1]))) + print ("Running away: " + str((runaway_x-c.player.center[0], runaway_y-c.player.center[1]))) gui.debug_line(c.player.center, (runaway_x,runaway_y),(255,0,0)) gui.update() else: @@ -68,9 +68,11 @@ while True: c.send_target(food[0].pos[0], food[0].pos[1]) gui.debug_line(c.player.center, food[0].pos,(0,0,255)) gui.update() + print("Found food at: " + str(food[0].pos)) else: rx = c.player.center[0] + random.randrange(-400, 401) ry = c.player.center[1] + random.randrange(-400, 401) c.send_target(rx, ry) gui.debug_line(c.player.center, (rx, ry),(0,255,0)) - gui.update()
\ No newline at end of file + gui.update() + print("Nothing to do, heading to random destination: " + str((rx, ry)))
\ No newline at end of file |