25
3
Write a quine... from which every other character can be removed it still be a valid quine. You can specify whether to start removing characters at the first or second character.
Scoring criteria (add bonuses/penatly percentages together for total percentage):
- Answers must be at least 4 characters long
- Program must contain at least one alphabetical character in its source, so for example,
12345!@#$%^&*()
is disqualified - +750% if the language used is not Turing-complete (I'm looking at you, HTML!)
- -15% if the solution does not read its source from anywhere in any form
- -20% if you can also keep only every 5th character and still form a quine
The score is measured by the number of characters in the first program.
Example (not real programs):
If 123456789abcdef
and 13579bdf
are both quines, the score is 15. Additionally, if 159d
is also a quine, then the final score is 12.
This is code-golf, so lowest score wins.
What if a person writes their code so all the removed characters are unnecessary whitespace? – None – 2014-03-07T05:13:29.537
2@hosch250 The original program wouldn't be a quine because it wouldn't print those whitespaces. Same goes for unnecessary comments. – Jwosty – 2014-03-07T05:26:44.467
Guess so. Nice challenge. – None – 2014-03-07T05:27:44.837
@hosch250 hah, I personally am not very good at even writing an answer for this type of thing.... But no matter what challenge you hurl at the people here, several people will have a solution to your insanely hard problem :P – Jwosty – 2014-03-07T05:34:59.453
1Yeah, I have never programed a quine before, and have no idea how to do it without reading the source code in C++. I have seen them in C++ before though! – None – 2014-03-07T05:37:47.747
If you're giving bonuses to markup languages, which don't have an execution model, you must be using a non-standard definition of quine, and you need to include it. – Peter Taylor – 2014-03-07T07:21:57.720
1You state: "-20% if you can also remove every 4 characters and still form a quine". But technically this is not what happens in your example. You mean you can do it a second time? – mmumboss – 2014-03-07T08:17:10.657
@mmumboss: "Remove every 4 characters" is not really grammatical, anyway, but yes, it appears to mean "remove all but every fourth character". – Ilmari Karonen – 2014-03-07T10:23:39.717
4Are the bonuses additive or multiplicative? That is, if my program is 10 chars long and qualifies for both the -15% bonus and the -20% bonus, will its score be 10 * (1 - 0.15 - 0.2) = 6.5 or 10 * (1 - 0.15) * (1 - 0.2) = 6.8? I assumed the latter, but an explicit clarification would be nice. – Ilmari Karonen – 2014-03-07T10:26:57.683
HQ9+ wins this easily. – Ismael Miguel – 2014-03-07T14:02:27.573
@IsmaelMiguel HQ9+ is not Turing complete (or even close), so it gets +750%. Minimum number of letters is 4, so that's 4*750%= 30. Code golf fail. – Kyle Strand – 2014-03-07T19:10:18.383
Still less than most languages can – Ismael Miguel – 2014-03-07T19:58:47.443
I think HQ9+ (Q+++) also qualifies for the 20% bonus... so it scores 24. – Brilliand – 2014-03-07T21:37:29.760
1Wouldn't this be a Mandoline quine, not a Guillotine? Guillotines make one clean, generally fatal, cut and the head rolls away. Mandolines make with the many evenly spaced slices. :) – Jonathan Van Matre – 2014-03-07T21:45:08.990
1@IlmariKaronen I didn't specify, but I consider it to be additive. – Jwosty – 2014-03-08T04:28:05.767
@JonathanVanMatre I like that. I'll go change the title now :) – Jwosty – 2014-03-08T04:29:56.400