Hints for the Generalized Challenge:

Below, you can find another hint for the Generalized Challenge.

You should only get here after reading, digesting, and applying the .

Hint

It is fairly straightforward to adapt the copy and transcribe functions to return a result string, rather than having this string written to output:

As in Hint 37 for the original Challenge, it would be good to test these definitions before continuing. This can be done interactively, by using as main program (following the definitions above):

For instance, supply as input

It outputs (you should ):

Can you use these definitions to complete the transformation of a self-reproducing program into a well-structured program that outputs its own shadow, and which can easily be generalized to do other processing of the program's own source code?

Apply the hint [ Machine ]

It is your turn ...

Need Another Hint?

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 .


Valid HTML 4.01 Transitional

Copyright ©2010, Tom Verhoeff, T.Verhoeff@TUE.NL