Simplify day 21 part 2
This commit is contained in:
parent
05e6b6e4fd
commit
3c77bf54fc
|
@ -225,8 +225,8 @@ def part2(memory: Memory) -> int:
|
||||||
'AND D J',
|
'AND D J',
|
||||||
|
|
||||||
# Check to make sure that the space after our jump is filled, and two jumps away.
|
# Check to make sure that the space after our jump is filled, and two jumps away.
|
||||||
# The one after two our jump should also be empty
|
# J(~J + E + H) distributes TO (E + H)
|
||||||
'NOT F T',
|
'NOT J T',
|
||||||
'OR E T',
|
'OR E T',
|
||||||
'OR H T',
|
'OR H T',
|
||||||
# If this condition isn't met, cancel our jump
|
# If this condition isn't met, cancel our jump
|
||||||
|
|
Loading…
Reference in a new issue