diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-21 18:12:32 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-21 20:29:35 +0100 |
| commit | 49280f2be70142633639618c8f8af0eb807fe429 (patch) | |
| tree | c95426f9cc92dcc68a1627890c71f39dc152b9e0 /19/py/21-2.js | |
| parent | 6648b90e324ef95c072a17daf4173b2334f08d57 (diff) | |
| download | aoc-49280f2be70142633639618c8f8af0eb807fe429.tar.gz | |
Separate solutions for day 21
Diffstat (limited to '19/py/21-2.js')
| -rw-r--r-- | 19/py/21-2.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/19/py/21-2.js b/19/py/21-2.js new file mode 100644 index 0000000..5f65fa1 --- /dev/null +++ b/19/py/21-2.js @@ -0,0 +1,23 @@ +// A or B or C: +// There is a gap somewhere in the next 3 tiles so we need to jump +or A T +and B T +and C T +not T J +// . and D +// We don't die if we jump +and D J +// (postfix) +// . and (H or EI or EF) +// H : We can immediatly jump again +// EI: We can walk one step and then jump again +// EF: We can walk two steps (and then potentially jump again) +// We don't have any information about tiles after I so we ignore and hope for +// the best +not F T +not T T +or I T +and E T +or H T +and T J +run |
