Skip to content

Instantly share code, notes, and snippets.

@mjnaderi
Last active July 8, 2021 08:48
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 mjnaderi/f6ef957e4ef3a44fc42ec2dc5a061c36 to your computer and use it in GitHub Desktop.
Save mjnaderi/f6ef957e4ef3a44fc42ec2dc5a061c36 to your computer and use it in GitHub Desktop.
# You can run this turing machine in https://turingmachine.io/
name: Print three strokes
source code: |-
# Print three strokes
# Demo for this talk: https://querateam.github.io/talks/presentations/Theory-of-Computation-1
input: ''
blank: 0
start state: s1
table:
s1:
0: {write: 1, L: s2}
s2:
0: {write: 1, L: s3}
s3:
0: {write: 1, L: done}
done:
positions:
s1: {x: 92.84, y: 351.18}
s2: {x: 271.67, y: 355.48}
s3: {x: 457.47, y: 360.39}
done: {x: 639.29, y: 358.06}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment