Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
margual56 committed Jun 22, 2020
1 parent d3032db commit 94b21d4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# TuringMachine
A Turing machine interpreter made in Java using Processing libraries.

## Description
In [this Wikipedia article](https://en.wikipedia.org/wiki/Turing_machine) it is explained what a Turing machine is.
What I have made is a "simulator" of that machine.

## Programming
Inside the "data" folder, there are 5 example programs of how to code a Turing Machine program. The extension of the file is completely arbitrary and it can be changed.

Firstly, you -define the initial state of the tape (example):
```Td
{q011101111};
```

After that (in this order), you define the final state:
```Td
#define F = {f};
```

And finally, you define all the states that you want. The syntax is the following: (state, oldValue, newValue, L/R/H (meaning "left/right/halt"), goToState);<br/><br/>
Example:
```Td
(q0, 1, 0, R, q1);
```

0 comments on commit 94b21d4

Please sign in to comment.