Binary +1Adds one to a binary number, carry included.
- 1
- 0
- 1
- q0
- q1
- qaccept
In state q0 the head reads 1: it writes 1, moves right and switches to q0.
On the tape101
Your runs
Let the machine halt and the run counts here, saved on this device only.
Examples
Six machines, from a warm-up to the busy beaver. Pick one, it lands on the tape with its own input.
Program
6 rules, 3 states, no problems.
Machine
Last steps
No steps yet. Press Space or Play.
About this tool
A whole computer in one rule table
Alan Turing described this machine in 1936. Read, write, move one cell: that is enough to compute anything any computer can compute.
Rules are the program
Each rule says: in this state, reading this symbol, write that, move left or right, switch state. Nothing else happens.
An endless tape
The tape grows whenever the head walks off its end. Some programs never stop, and in general no program can predict which ones.
Learn more
Keyboard
- Space
- Play or pause
- ←→
- One step back or forward
- R
- Back to the start
- F
- Run to the end
- -+
- Slower or faster