Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 443 Bytes

File metadata and controls

11 lines (7 loc) · 443 Bytes

Turing-Machine

A ruby class that simlulates a Turing Machine

Contents

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