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

The self-reproducing program that we have been using from Hint 39 reproduces itself through a bunch of write statements, spread all over the program.

Instead of making some changes to these write statements, one could take a different approach. Apparently, there is a need for the ability to process the characters that make up the program's source code, and instead of feeding them to write statements, we want to do something else with them.

So, instead of feeding these characters to write statements, we could collect them in a string, which is then processed afterwards. This requires adapted copy and transcribe functions.

Use these ideas to transform 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