Minor style fix to day 13
parent
5a3b608473
commit
3c0206a20f
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue