Skip to content

A Ruby class that emulates a turing machine. The transition table is represented as a separate JSON file (See test_2.json for example formatting)

Notifications You must be signed in to change notification settings

westonkd/Turing-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Ruby class that emulates a turing machine. The transition table is represented as a separate JSON file (See test_2.json for example formatting)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published