Build any Turing machine and watch it run, right in your browser. Click a cell of the table to write a rule, put A, B and blanks on the tape, then run the machine or go one step at a time, forward and back. It uses the same tape and table as the daily puzzle, with nothing to solve.
The table has a column for each state and a row for each symbol the head can read: A, B and the blank. Click a cell to choose what the machine writes, which way the head moves and which state comes next. A cell left empty means the machine has no rule for that case, and it stops there.
Use + and − above the table to add or remove states, up to eight. Edit the input with the buttons under INPUT, or type A, B and _ on a keyboard. The machine starts in state 1 on the first symbol of the input.
Run plays the machine and Pause stops it. Step and Back move one step at a time, Rewind puts the input back on the tape, and the speed button changes how fast it runs. On a keyboard, Space runs and pauses, the arrow keys step and R rewinds.
A run ends when the machine moves to ✓, when it reads a symbol that its state has no rule for, or after 10,000 steps. Your table and input stay in this browser.
Flip A and B turns every A into B and every B into A, then stops at the end of the input. One state is enough, because there is nothing to remember.
Add one in binary reads the input as a binary number, with A for 0 and B for 1, and adds one. It walks to the right end, then back to the left, turning each B into A until it can turn an A or a blank into B. Walking back explains why it has to turn around.
Parity bit writes one more symbol after the input: A if the input has an even number of Bs, B if the number is odd. Its two states remember which is true so far. A state is the only memory shows how.
Busy beaver, 2 states starts on an empty tape, writes four Bs and stops after six steps. Busy beaver, 4 states runs for 107 steps before it stops, the most any machine with four states can run and still stop. The busy beaver tells the story.
A Turing machine is the simplest model of a computer. Alan Turing described it in 1936: a long tape of cells, a head that reads and writes one symbol at a time, and a short table of rules that says what to do for each state and symbol. Anything a computer today can compute, a Turing machine can compute too, given enough tape and time. What Turing wrote in 1936 and Machines that never stop say more.
Want a puzzle? Today's Turing Daily gives you a table with a few cells missing and a handful of examples, and asks you to fill in the rest.