Skip to content

Instantly share code, notes, and snippets.

@JasonSpine
Created September 8, 2018 00:55
Show Gist options
  • Save JasonSpine/cd0ca72a2c2054975fb23938de2ab5ee to your computer and use it in GitHub Desktop.
Save JasonSpine/cd0ca72a2c2054975fb23938de2ab5ee to your computer and use it in GitHub Desktop.
7 Billion Humans | Year 57 | Size
-- 7 Billion Humans (2087) --
-- 57: Neighborly Sweeper --
mem1 = set e
if e == wall:
a:
b:
if w != wall:
step w
mem2 = set 0
mem4 = foreachdir nw,w,sw,n,s,ne,e,se:
if mem4 == datacube:
mem2 = calc mem2 + 1
endif
endfor
pickup c
write mem2
drop
jump a
endif
step mem1
step n
jump b
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment