@turing-machine-js/machine
Some basic objects to build your own turing machine
Install
Using npm:
npm install @turing-machine-js/machine
or using yarn:
yarn add @turing-machine-js/machine
Classes
Alphabet
Command
Reference
State
Tape
TapeBlock
TapeCommand
TuringMachine
Special objects
haltState
A special state for stopping the machine
ifOtherSymbol
A special symbol for representing the other symbols in State
class definition
movements
- left - move the head to the left
- right - move the head to the right
- stay - do not move the head
symbolCommands
- erase - write the blank symbol
- keep - leave the current symbol
Libraries
Links
- Turing Machine on the Wikipedia