diff options
Diffstat (limited to 'bqn')
-rw-r--r-- | bqn/life.bqn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bqn/life.bqn b/bqn/life.bqn new file mode 100644 index 0000000..a7be050 --- /dev/null +++ b/bqn/life.bqn @@ -0,0 +1,8 @@ +Life←{ + r←¯1(⌽⎉1)¯1⌽(2+≢𝕩)↑𝕩 + s←∨´ (1∾<r) ∧ 3‿4 = <+´⥊ ¯1‿0‿1 (⌽⎉1)⌜ ¯1‿0‿1 ⌽⌜ <r + 1(↓⎉1) ¯1(↓⎉1) 1↓ ¯1↓s +} + +blinker←>⟨0‿0‿0,1‿1‿1,0‿0‿0⟩ +(<".#") ⊏¨˜ Life⍟(↕3) blinker \ No newline at end of file |