Practice 1: turn every A into B

One state and one ? cell to fill. It is the machine from the first picture in How to play, so start there if the rule table is new to you.

Read the examples

Compare each input with its output one cell at a time: AB → BB, ABA → BBB, AAB → BBB. Every A has become B and every B is still B. Nothing is added or removed, so the machine only has to walk to the right once and change each A on the way.

Read the given cells

The table has one column, state 1. Reading B, it writes B back, moves right and stays in state 1: the B is left as it is and the head walks on. Reading the blank cell after the input, it stops on ✓. The ? cell is state 1 reading A, so the only question is what to do with an A.

Show the answerHide the answer

Fill the cell

  • State 1 reads A. Write B, move right and stay in state 1.

Why not stop on ✓ right after writing B? AB would still pass, but ABA would stop after its first cell and leave BBA. Staying in state 1 keeps the machine walking until the blank stops it.

Follow one example

ABA should become BBB:

StepStateReadsWritesMovesNextTape after
11ABright1BBA
21BBright1BBA
31ABright1BBB
41blankblankright✓BBB
The solved table. All three examples pass.

Takeaway: a cell that keeps the machine in the same state makes a loop. The same rules run on cell after cell until something else, here the blank, stops the machine.

Next: Practice 2, with two states and two cells to fill.