Taking advantage of a neat trick for using $ rather than a lambda
[advent-of-code-17.git] / data / advent25.txt
1 Begin in state A.
2 Perform a diagnostic checksum after 12994925 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 F.
13
14 In state B:
15 If the current value is 0:
16 - Write the value 0.
17 - Move one slot to the right.
18 - Continue with state C.
19 If the current value is 1:
20 - Write the value 0.
21 - Move one slot to the right.
22 - Continue with state D.
23
24 In state C:
25 If the current value is 0:
26 - Write the value 1.
27 - Move one slot to the left.
28 - Continue with state D.
29 If the current value is 1:
30 - Write the value 1.
31 - Move one slot to the right.
32 - Continue with state E.
33
34 In state D:
35 If the current value is 0:
36 - Write the value 0.
37 - Move one slot to the left.
38 - Continue with state E.
39 If the current value is 1:
40 - Write the value 0.
41 - Move one slot to the left.
42 - Continue with state D.
43
44 In state E:
45 If the current value is 0:
46 - Write the value 0.
47 - Move one slot to the right.
48 - Continue with state A.
49 If the current value is 1:
50 - Write the value 1.
51 - Move one slot to the right.
52 - Continue with state C.
53
54 In state F:
55 If the current value is 0:
56 - Write the value 1.
57 - Move one slot to the left.
58 - Continue with state A.
59 If the current value is 1:
60 - Write the value 1.
61 - Move one slot to the right.
62 - Continue with state A.