diff options
Diffstat (limited to 'solutions/py/d13.py')
| -rw-r--r-- | solutions/py/d13.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solutions/py/d13.py b/solutions/py/d13.py index 88b0fa2..3dbc5fb 100644 --- a/solutions/py/d13.py +++ b/solutions/py/d13.py @@ -44,7 +44,7 @@ def pt2(input): ball_x = paddle_x = 0 while c.memory[c.pointer] != 99: - if c.wants_input: + if c.SIG_INPUT: points, ball_x, paddle_x = draw(screen, points) if paddle_x < ball_x: c.input = 1 @@ -104,7 +104,7 @@ def visualize(input): ball_x = paddle_x = 0 while c.memory[c.pointer] != 99: - if c.wants_input: + if c.SIG_INPUT: time.sleep(0.01) frame_n += 1 frame, points, ball_x, paddle_x = draw(screen, points) |
