Skip to content

Instantly share code, notes, and snippets.

@sjmulder
Last active December 16, 2015 08:49
Show Gist options
  • Save sjmulder/5408629 to your computer and use it in GitHub Desktop.
Save sjmulder/5408629 to your computer and use it in GitHub Desktop.
We want... a shrubbery!
def _0():
__=1
while _[9][_[5]]==0 and __>0 and _[3]<len(_[1]):
_[3]+=1
if _[1][_[3]]==_[1][0]:__+=1
if _[1][_[3]]==_[1][1]:__-=1
def _1():
__=1
while _[9][_[5]]!=0 and __>0 and _[3]>=0:
_[3]-=1
if _[1][_[3]]==_[1][0]:__-=1
if _[1][_[3]]==_[1][1]:__+=1
def _2():_[9][_[5]]+=1
def _3():_[9][_[5]]-=1
def _4():_[12]+=chr(_[9][_[5]])
def _5():_[5]-=1
def _6():_[5]+=1
def _7():
while _[3]<len(_[1]):
if not _[5] in _[9]:_[9][_[5]]=0
_[ord(_[1][_[3]])%len(_)]()
_[3]+=1
print _[12]
_=[_0,'[]++++++++++[>+++++>+++>+++++++++>++++++++++>+++++++++++>++++++++++++<<<<<<-]>>>---.>+.<<++.>>>>-.<<----.>.>---.<<<<<----...>.>>.<<.>>>>-.<------.>-.+++.<<+..+++.>>---.+++++++.<<<<+.',_1, 0,_2,0,_3,_4,_5,{},_6,_7,'']
_[11]()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment