Skip to content

A browser-based fully-interactive Turing Machine simulator

License

Notifications You must be signed in to change notification settings

lachlanmacphee/tursim

Repository files navigation

General Turing Machine Rules

Follows the Monash University FIT2014 definition of a Turing machine:

  • Tape is infinite to the right
  • You can "fall off" the tape if you go too far left
  • Output ends at leftmost blank cell
  • Blank cells denoted by an _

Roadmap

  • Undo / redo

Implemented Features

  • Infinite canvas that's pannable, zoomable, scrollable, lockable, full-screen-able
  • Simple node connections (just click on one, drag to another, then release, exactly like tuatara)
  • Move-able nodes (just drag them by the lil gray circle)
  • X character tape (X can be as high as you want, but you might suffer performance issues)
  • Ability to add new nodes
  • Character specifications on edges, with replacements and tape direction
  • Animated playback of the tape (including where it is on the diagram and a moving head).
  • Being able to use the tape in correspondence with the machine when running
  • Execution speed control (implemented in intervals 20%, 40%, 60%, 80%, 100%)
  • Output of edge connections in JSON format so it can be validated by scripts (this is not the same as saving the machine)
  • Ability for nodes to redirect back to themselves
  • Import from text encoding and create layout automatically
  • Dynamic edges for readability
  • Light/dark mode
  • Saving/loading tapes
  • Saving/loading machines
  • Spawn nodes at random points rather than overlaying
  • Multiple connections between a set of two nodes
  • Keyboard shortcuts

About

A browser-based fully-interactive Turing Machine simulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •