about summary refs log tree commit diff
path: root/day24.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'day24.ijs')
-rw-r--r--day24.ijs6
1 files changed, 6 insertions, 0 deletions
diff --git a/day24.ijs b/day24.ijs
new file mode 100644
index 0000000..4ceb030
--- /dev/null
+++ b/day24.ijs
@@ -0,0 +1,6 @@
+split =: 13 : '(-.0,}: y e. ''ns'') <;.1 y'
+pos =: [:+/[:>(0 1;_1 1;_1 0;0 _1;1 _1;1 0){~(<;._1' e se sw w nw ne') i. split
+
++/2|+/"1 = d=: (pos;._2) 1!:1<'day24'
+
+NB. part2 TBD