Skip to content

Instantly share code, notes, and snippets.

@ishahid
Created October 22, 2016 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishahid/111b167c323c0f3566cec1b69384b149 to your computer and use it in GitHub Desktop.
Save ishahid/111b167c323c0f3566cec1b69384b149 to your computer and use it in GitHub Desktop.
++++++++++ initialize counter (cell #0) to 10
[ use loop to set the next six cells to 70/80/90/100/30/10
> +++++ ++ add 7 to cell #1
> +++++ +++ add 8 to cell #2
> +++++ ++++ add 9 to cell #3
> +++++ +++++ add 10 to cell #4
> +++ add 3 to cell #5
> + add 1 to cell #6
<<<<<< - decrement counter (cell #0)
]
> +++ . print 'I'
>>> +++++ ++++ . print 'm'
+++++ . print 'r'
< +++++ ++ . print 'a'
> ---- . print 'n'
> ++ . print ' '
<<< +++ . print 'S'
>> ----- - . print 'h'
< . print 'a'
> . print 'h'
+ . print 'i'
----- . print 'd'
>> . print '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment