A ruby class that simlulates a Turing Machine
Turing.rb
contains the TuringMachine
class and a few lines of code to exercise it. To modify the value initially set on the tape see line 171 in turing.rb
div.json
contains an example instruction set for the TuringMachine
class. These instructions do binary division by 2 on the initial value of the tape.
##Running
To run the program do ruby turing.rb