Skip to content

Instantly share code, notes, and snippets.

@JasonSpine
Created September 9, 2018 18:55
Show Gist options
  • Save JasonSpine/c0c55c8d638c445552c008e52a41cc95 to your computer and use it in GitHub Desktop.
Save JasonSpine/c0c55c8d638c445552c008e52a41cc95 to your computer and use it in GitHub Desktop.
7 Billion Humans | Year 66 | Size
-- 7 Billion Humans (2087) --
-- 66: Decimal Counter --
step s
if s == button:
a:
listenfor go
step s
step n
tell w ready
jump a
endif
pickup c
step s
b:
drop
if mem1 <= 9:
tell everyone go
endif
if c != 1 or
w == nothing:
listenfor ready
endif
mem1 = calc 1 + c
pickup c
if mem1 > 9:
write 0
tell w ready
else:
write mem1
endif
jump b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment