summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-12-21 07:50:22 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-12-21 20:29:34 +0100
commit450342e67a596f4a2825319999f10743c5770796 (patch)
treeb852aa9ac0e9bad53068fcd690c8108cdac0a7ac
parenta11fa4638c576cfaaeb3d00ba99dd538421dfe52 (diff)
downloadaoc-450342e67a596f4a2825319999f10743c5770796.tar.gz
Day 21 part 1
-rw-r--r--19/py/d21.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/19/py/d21.py b/19/py/d21.py
index 2e39563..3b2e123 100644
--- a/19/py/d21.py
+++ b/19/py/d21.py
@@ -1,3 +1,14 @@
+# program and idea for part 1:
+# jump if any tile of the first three aren't ground and the fourth is ground
+# J = (not A or not B or not C) and D
+# (dm) <=> J = not (A and B and C) and D
+# or A T
+# and B T
+# and C T
+# not T J
+# and D J
+# walk
+
import intcode
f = open("../input/21", "r").readlines()