Skip to content

Instantly share code, notes, and snippets.

@blackmius
Created June 2, 2020 00:50
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 blackmius/1bc125d8c333cfc8978fbd37c1dda0f7 to your computer and use it in GitHub Desktop.
Save blackmius/1bc125d8c333cfc8978fbd37c1dda0f7 to your computer and use it in GitHub Desktop.
name: add x y
source code: |-
input: '1111 1111'
blank: ' '
start state: start
table:
start:
'1': {write: ' ', R: carry right x}
' ' : {L: done}
carry right x:
'1': R
' ': {R: carry right y}
carry right y:
'1': R
' ': {write: '1', L: back y}
back y:
'1': L
' ': {L: back x}
back x:
'1': L
' ': {R: start}
done:
positions:
start: {x: 347.67, y: 242.07, fixed: false}
carry right x: {x: 409.57, y: 112.89, fixed: false}
carry right y: {x: 528.42, y: 192.54, fixed: false}
back y: {x: 512.88, y: 335, fixed: false}
back x: {x: 377.99, y: 382.32, fixed: false}
done: {x: 205.54, y: 236.33}
editor contents: |-
input: '1111 1111'
blank: ' '
start state: start
table:
start:
'1': {write: ' ', R: carry right x}
' ' : {R: done}
carry right x:
'1': R
' ': {R: carry right y}
carry right y:
'1': R
' ': {write: '1', L: back y}
back y:
'1': L
' ': {L: back x}
back x:
'1': L
' ': {R: start}
done:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment