Minor style fix to day 13

master
Nick Krichevsky 2019-12-14 20:43:18 -05:00
parent 5a3b608473
commit 3c0206a20f
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ def run_game(initial_memory_state: Memory, playable: bool = False) -> (DefaultDi
if not playable: if not playable:
continue continue
if tile == tile.PADDLE: if tile == Tile.PADDLE:
paddle_position = (x, y) paddle_position = (x, y)
elif tile == Tile.BALL and paddle_position is not None: elif tile == Tile.BALL and paddle_position is not None:
# Input 0 if the ball is above the paddle, move the paddle towards the ball otherwise. # Input 0 if the ball is above the paddle, move the paddle towards the ball otherwise.