chiark / gitweb /
02a and 02b done
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 2 May 2024 13:30:43 +0000 (14:30 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 2 May 2024 13:30:43 +0000 (14:30 +0100)
02/02a.bqn [new file with mode: 0644]
02/02b.bqn [new file with mode: 0644]

diff --git a/02/02a.bqn b/02/02a.bqn
new file mode 100644 (file)
index 0000000..2994b15
--- /dev/null
@@ -0,0 +1,11 @@
+scoretable ← [
+  ⟨ 3+1, 6+2, 0+3 ⟩
+  ⟨ 0+1, 3+2, 6+3 ⟩
+  ⟨ 6+1, 0+2, 3+3 ⟩
+]
+
+Prep←{-⟜⟨'A','X'⟩¨(⟨0,2⟩⊸⊏¨𝕩)}
+
+Main←{+´{𝕩⊑scoretable}¨𝕩}
+
+•Show Main Prep •file.Lines ⊑•args
diff --git a/02/02b.bqn b/02/02b.bqn
new file mode 100644 (file)
index 0000000..bafdf20
--- /dev/null
@@ -0,0 +1,11 @@
+scoretable ← [
+  ⟨ 0+3, 3+1, 6+2 ⟩
+  ⟨ 0+1, 3+2, 6+3 ⟩
+  ⟨ 0+2, 3+3, 6+1 ⟩
+]
+
+Prep←{-⟜⟨'A','X'⟩¨(⟨0,2⟩⊸⊏¨𝕩)}
+
+Main←{+´{𝕩⊑scoretable}¨𝕩}
+
+•Show Main Prep •file.Lines ⊑•args