Below, you can find another hint for the Generalized Challenge.
You should only get here after reading, digesting, and applying the .
Let us complete the construction of the program that outputs its own shadow. Instead of adapting it manually, we again adapt the skeleton from Hint 39 and generate the program. However, this time the adaptation is more involved. Here is the adapted skeleton:
To obtain the desired program, we process the skeleton in the same way as in Hint 39. Supply the skeleton above as input to
where the definitions of encode(), transcribe() and copy() are included as well. The resulting program then generates the desired program. . It outputs:
This output is a program that outputs its own shadow, as you can :
Can you find a more general way to transform a self-reproducing program into a well-structured program that outputs its own shadow?
It is your turn ...
If you have no idea how to get started, or if you tried some programs and do not see how to proceed, then you are ready for the .