Skip to content

Visualize Turing machines and deterministic finite automata. 🔵🔁🔴↩️

License

Notifications You must be signed in to change notification settings

CahyaW06/turing-machine-viz

 
 

Repository files navigation

Project ini menggunakan source code dari aepsilon yang dikembangkan sedemikian rupa agar sesuai dengan bentuk yang saya inginkan. Beberapa bagian yang diubah:

  • Mengubah ukuran workspace dari diagram turing machine
  • Menampilkan string yang dihasilkan

Berikut ini deskripsi asli dari repository ini.

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:

About

Visualize Turing machines and deterministic finite automata. 🔵🔁🔴↩️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.7%
  • HTML 22.2%
  • Other 1.1%