McCaw won the part 2, steps competition. Behold:



Let me see…
- Generated code — a golf of 6565.
- Coming from both ends and twice from the middle at the same time.
Yeah, I guess that’s it! But, just for fun, let’s look at the case 2 program, ignoring all the rules not used.
HEADS AAABBBBCCC
START .......... S000 ***+*+**** SDDLLDDSLL
S000 .......... S001 ***+*+**** SSDLLDDSSL
S001 .......... S002 +******+++ RRRSDSLUUU
S002 .@*.....@* S044 +**+++++** RRRDDLLUUU
S044 ...+.+.... S04D +++*+*++++ RRRLLDDUUU
S04D *@.@.@.*@. S04D **+*+*+**+ RRRLLDDUUU
S04D **+*+*+**+ STOP ********** SSSSSSSSSS
2 steps to spread the heads, and writing the 1st +’s in the corner as well. And then we go! There are a lot of rules for S04D. The 3 head combinations from the ends can always move closer to the corner. The 2 head combinations beginning in the corner have to dance a little (!), when they maneuver through a hole between the barrels.
Code
.