Skip to content

Turing Machine in Python with excel sheets for instructions

Notifications You must be signed in to change notification settings

CharliesCodes/turing-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Python implementation of the Turing-machine

This module uses excel spreadsheets for instructions

How to use

If you want to use your own instructions, do the following steps:

  1. Add a new Excel sheet
  2. Copy and paste header into first line
  3. Add the sheetname into the beginning of the Python Code
  4. Add a binary start sequence into the tape variable
instructions = <NAME OF YOUR SHEET>
df = pd.read_excel('instructions.xlsx', header=0,
                   sheet_name=instructions).astype("string")

tape = list("#<BINARY NUMBERS YOU WANT TO START WITH>#")

About

Turing Machine in Python with excel sheets for instructions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages