diff options
-rw-r--r-- | 2021/16/puzzles.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/2021/16/puzzles.py b/2021/16/puzzles.py index 75e29d1..7d47814 100644 --- a/2021/16/puzzles.py +++ b/2021/16/puzzles.py @@ -34,11 +34,11 @@ class Packet(NamedTuple): case 4: return self.value case 5: - return self.subpackets[0].calculate() > self.subpackets[1].calculate() + return f(self.subpackets[0]) > f(self.subpackets[1]) case 6: - return self.subpackets[0].calculate() < self.subpackets[1].calculate() + return f(self.subpackets[0]) < f(self.subpackets[1]) case 7: - return self.subpackets[0].calculate() == self.subpackets[1].calculate() + return f(self.subpackets[0]) == f(self.subpackets[1]) # END PART 2 |