Skip to content

Instantly share code, notes, and snippets.

@JasonSpine
Last active September 8, 2018 01:01
Show Gist options
  • Save JasonSpine/2b1db18660cf8d847a284916e59aff58 to your computer and use it in GitHub Desktop.
Save JasonSpine/2b1db18660cf8d847a284916e59aff58 to your computer and use it in GitHub Desktop.
7 Billion Humans | Year 58 | Size
-- 7 Billion Humans (2087) --
-- 58: Good Neighbors --
a:
step nw,sw,ne,se
mem2 = set 0
mem1 = foreachdir nw,w,sw,n,s,ne,e,se:
if mem1 == datacube:
mem2 = calc 1 + mem2
endif
endfor
if mem2 <= 3:
drop
else:
pickup c
endif
jump a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment