A Quine Puzzle
wgreenberg.github.io
A Quine Puzzle
1–10 of 36 posts
Re: A Quine Puzzle
#2cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==
Re: A Quine Puzzle
#3Spoiler: cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==
Re: A Quine Puzzle
#4Spoiler: cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==
cHJpbnQgMApwcmludCAyCnByaW50IDAKcHJpbnQgMgpwcmludCAwCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCnByaW50IDIKcmVwZWF0IDMgMgo=
Re: A Quine Puzzle
#5Re: A Quine Puzzle
#6Re: A Quine Puzzle
#7Re: A Quine Puzzle
#8Re: A Quine Puzzle
#9The 'repeat' command ("repeats the last M lines of output, starting N lines from the end") isn't very well described by the documentation, so some experimentation is required. 'repeat M N' will produce no output at all when the output is empty, but will always produce M lines of output, by repeatedly looping through the last (min(N, lines of output)) lines of the output, when the output is not. That's not very intuit…
I do show that particular edge case (along with "print 0") in the examples, though.