Skip to content

RSMuthu/Turing-Machine-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turing Machine Simulation

The Commands used for the Turing Machine Simulation are available in the 'cmd_list.md' file.

PreRequesite For using Executable file

OS: Windows

There are two ways in which we can run the Simulation

1. - Execute '.tur' file


---> Start command prompt.
---> Navigate to this current directory of 'ReadMe.txt' file
---> Execute the command ".\Simulation\dist\turing_simulation\turing_simulation.exe <file_name>.tur"
---> Example: to execute sample code from this current directory ".\Simulation\dist\turing_simulation\turing_simulation.exe .\examples\sample0.tur"

2. - Execute as a Console


---> Assuming that you are in current directory of 'ReadMe.txt' file_name
---> Run the file 'turing_simulation.exe' in the folder ".\Simulation\dist\turing_simulation" (relative path is ".\Simulation\dist\turing_simulation\turing_simulation.exe")
---> Turing Machine Simulation Console appears.
---> Now you can Run the Turing Machine Commands, just as we run Python commands in the Python Console.

PreRequesite For Working with Source code

OS: any
Python 2.7

1 - Executing from Source code


---> Clone the 'Source' folder from the project folder.
---> Open the command prompt and navigate to that cloned folder.
---> Run the command "python main.py" (for Turing machine Console) or "python main.py <file_name>.tur" (for running a '.tur' file)

About

A simple simulation of a Turing Machine to help my friends understand the working of a Turing Machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors