Skip to content

Instantly share code, notes, and snippets.

@mathieugouin
Created January 6, 2023 03:44
Show Gist options
  • Save mathieugouin/6c9610b8da5dea75cd00b88511b14281 to your computer and use it in GitHub Desktop.
Save mathieugouin/6c9610b8da5dea75cd00b88511b14281 to your computer and use it in GitHub Desktop.
name: inversion
source code: |-
input: '1010'
blank: ' '
start state: read
# Testing with https://turingmachine.io/
# opt opt req opt
# {write: symbol, move: state}
# [' ',0,1]
table:
read:
' ': {R: done}
1 : {write: 0, R}
0 : {write: 1, R}
last:
[' ',0,1]: {L: done}
done:
positions:
read: {x: 231.48, y: 182.42}
last: {x: 392.83, y: 310.32}
done: {x: 570, y: 250}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment