Skip to content

Commit 0f2bd23

Browse files
committed
Day 17, formatting
1 parent 469ef23 commit 0f2bd23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

solutions/day17.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ def get_combo_value(self, operand: int) -> int:
4848
"""
4949
if 0 <= operand <= 3:
5050
return operand
51-
51+
5252
elif operand == 4:
5353
return self.registers["A"]
54-
54+
5555
elif operand == 5:
5656
return self.registers["B"]
57-
57+
5858
elif operand == 6:
5959
return self.registers["C"]
60-
60+
6161
else:
6262
raise ValueError(f"Invalid combo operand: {operand}")
6363

@@ -100,7 +100,7 @@ def execute_instruction(self, program: List[int]) -> bool:
100100
if self.registers["A"] != 0:
101101
self.instruction_pointer = operand
102102
return True
103-
103+
104104
elif opcode == 4: # bxc
105105
self.registers["B"] ^= self.registers["C"]
106106

@@ -146,10 +146,10 @@ def check_output(self, program: List[int], partial: bool = False) -> bool:
146146
output = self.run(program)
147147
if len(output) > len(program):
148148
return False
149-
149+
150150
if partial:
151151
return output == program[: len(output)]
152-
152+
153153
return output == program
154154

155155

0 commit comments

Comments
 (0)