Mighty Quine

Discussion of challenges you have already solved
tog
Posts: 70
Joined: Fri Nov 14, 2008 11:23 am
Location: Germany

Post by tog »

Funny, this is *exactly* the solution that I also got. Nice! Maybe this hints at the lower limit for this challenge? I think the 75-solution is impossible (unless we find a smart way to turn a 77* into a 56).
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

... or we find a code in which the first loop begins with "1" or "9"?
tog
Posts: 70
Joined: Fri Nov 14, 2008 11:23 am
Location: Germany

Post by tog »

It's fine if the first loop starts with "6". The problem is the 8 that follows...

But I don't see how you would replicate the 1 resp. 9 (I guess you would somehow take it from the front)?
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

We can carry 49 to the second loop, so I thought we could use it to print "1" as it is, or "9" with 49*9.

I guess your idea for "6" is like this:

Code: Select all

939245817163317267424791639257425313194742374163086*^0^p772^2?*c1^3+9*+P1?$
This 75 length code prints itself except for the difference of one character.
tog
Posts: 70
Joined: Fri Nov 14, 2008 11:23 am
Location: Germany

Post by tog »

tails wrote:"9" with 49*9.
Oh, very nice! Haven't thought of that! What a pity that we don't need 69* but 68*. Again - one off :cry:
tails wrote: I guess your idea for "6" is like this.
Yes, that's what I thought of. I even got that damn 'a' :wink:
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

First I added a useless instruction to my quine of length 81 to get it work, which was very similar to the shortest quine by tails and tog. However, this instruction can be omitted. So, the new mighty one to beat is 80 instructions long.

@adum: Could you shrink the limit of the challenge, please?
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

nice! new challenge created
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

Thanks.
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

Hmmm, I have stepped from 82 directly to 80 ...
Post Reply