Turing Machine by hallvabo

a=list(open('../fd/0'))
s='A'
t=['']*324
p=114
while'#'<s:t[p],d,s=a[int(t[p]or 0)+1][ord(s)%8*4:][:3];p+=ord(d)-61
print''.join(t)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page