Skip to content

Commit b122505

Browse files
committed
Day 13, formatting
1 parent 6486854 commit b122505

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

solutions/day13.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def calculate_coins(self, data: List[str], part2: bool = False) -> int:
9999
prize_coords = self.extract(prize, "prize")
100100

101101
if part2:
102-
prize_coords = (prize_coords[0] + self.OFFSET, prize_coords[1] + self.OFFSET)
102+
prize_coords = (
103+
prize_coords[0] + self.OFFSET,
104+
prize_coords[1] + self.OFFSET,
105+
)
103106

104107
if result := self.solve_machine(
105108
btn_a_coords, btn_b_coords, prize_coords, None if part2 else 100

0 commit comments

Comments
 (0)