Done day 25
[advent-of-code-17.git] / src / advent25 / advent25sample.txt
1 Begin in state A.
2 Perform a diagnostic checksum after 6 steps.
3
4 In state A:
5 If the current value is 0:
6 - Write the value 1.
7 - Move one slot to the right.
8 - Continue with state B.
9 If the current value is 1:
10 - Write the value 0.
11 - Move one slot to the left.
12 - Continue with state B.
13
14 In state B:
15 If the current value is 0:
16 - Write the value 1.
17 - Move one slot to the left.
18 - Continue with state A.
19 If the current value is 1:
20 - Write the value 1.
21 - Move one slot to the right.
22 - Continue with state A.