• Stars
    star
    246
  • Rank 164,726 (Top 4 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visualize Turing machines and deterministic finite automata. ๐Ÿ”ต๐Ÿ”๐Ÿ”ดโ†ฉ๏ธ

turingmachine.io

This is a Turing machine visualizer designed for learning through visual thinking and creative exploration.

Machines are described in a simple YAML-based format. As you code, each save updates the state diagram; this offers the speed and directness of code, combined with the visual intuitiveness of a graphical editor.

Multiple example machines are provided, each one with commentary that touches on concepts like subroutines and inductive definitions / recursion. Many examples include exercises that build on the machines and deepen understanding. To encourage experimentation, the document system provides for quick snapshots and autosaving to browser local storage.

All in all, this is the simulator I wish I had when taking automata theory. At the same time, Iโ€™ve tried to make it accessible to people who arenโ€™t in computer science, or havenโ€™t heard of a Turing machine before.

Feel free to email me if you have any questions, comments, or feedback in general about the project. Bug reports and feature requests are also welcome on the issue tracker. Some known issues and ideas for improvement are outlined on the wiki.

Development Setup

If you want to work on the site itself, hereโ€™s how to get started:

Clone the repo and run npm install in the folder. Afterwards, use npm start to host the site locally on a webpack server, by default at localhost:8080.

npm run depgraph or depgraph-noext (requires madge and Graphviz) produces a visual dependency graph thatโ€™s good for getting a feel for the code layout.

Dependencies

Thanks go to the authors of the following runtime dependencies: