Skip to content

Commit 4c612b2

Browse files
committed
IntCode: Corrected reset
1 parent 7046de1 commit 4c612b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

2019/IntCode.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def __init__(self, instructions, reference=""):
3535

3636
def reset(self, instructions):
3737
self.instructions = list(map(int, instructions.split(",")))
38+
self.inputs = []
39+
self.all_inputs = []
40+
self.outputs = []
3841
self.pointer = 0
3942
self.state = "Running"
4043

0 commit comments

Comments
 (0)