From 40f1796f20c3e8c6f4853254c799676901c18e5d Mon Sep 17 00:00:00 2001 From: Tim Hutton Date: Tue, 28 Jun 2016 13:04:09 +0100 Subject: [PATCH] Fix: ALE_HAC.py had indentation issues. This closes #114. --- Malmo/samples/Python_examples/ALE_HAC.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Malmo/samples/Python_examples/ALE_HAC.py b/Malmo/samples/Python_examples/ALE_HAC.py index 4f671f6dd..9e69348b3 100755 --- a/Malmo/samples/Python_examples/ALE_HAC.py +++ b/Malmo/samples/Python_examples/ALE_HAC.py @@ -55,7 +55,7 @@ def keyUp(event): if event.keysym == 'Escape': root.destroy() if event.keysym == 'Right': - right = 0 + right = 0 if event.keysym == 'Left': left = 0 if event.keysym == 'Up': @@ -68,17 +68,17 @@ def keyUp(event): def keyDown(event): global left, right, up, down, fire if event.keysym == 'Right': - right = 1 - left = 0 # left and right are mutually exclusive + right = 1 + left = 0 # left and right are mutually exclusive if event.keysym == 'Left': left = 1 - right = 0 + right = 0 if event.keysym == 'Up': up = 1 - down = 0 # up and down are mutally exclusive + down = 0 # up and down are mutally exclusive if event.keysym == 'Down': down = 1 - up = 0 + up = 0 if event.keysym == 'space': fire = 1 @@ -162,22 +162,22 @@ def sendCommand(): ops = ops - set(leftops) if right: - ops = ops & set(rightops) + ops = ops & set(rightops) else: ops = ops - set(rightops) if up: - ops = ops & set(upops) + ops = ops & set(upops) else: ops = ops - set(upops) if down: - ops = ops & set(downops) + ops = ops & set(downops) else: ops = ops - set(downops) if fire: - ops = ops & set(fireops) + ops = ops & set(fireops) else: ops = ops - set(fireops)