15
2
Edit: Allowed to reuse whitespaces.
Your task is to write n programs (or functions, or bodies of functions without using parameters or the function names) in the same language. The kth program should output the (cardinal) number k in standard English in lowercase (with an optional trailing newline). So the first program should output one
, the second should output two
, etc. For a number having two parts, they should be separated by a hyphen like twenty-one
.
But no two programs in your submission can share non-whitespace characters or whitespace characters doing useful works. For example, if your first program is just "one"
, then none of "
o
n
and e
can be used again in your other programs.
You can use whitespace characters (spaces, newlines and tabs) in two or more programs, if they only serve as separators or indentation and don't do anything by themselves. So you can't reuse them in the Whitespace language, and you can't use them in strings in more than one program.
You can only use printable ASCII characters, tabs, and newlines (including CR and LF). Every program must contain at least 1 character.
Your score is the sum of 1/program size^1.5. Highest score wins. You can use this Stack Snippet (or this CJam code) to calculate your score:
function updatescore(a){var l=a.value.split("\n"),s=0;for(var i=0;i<l.length;i++){var t=l[i].length;t-=t&&l[i][t-1]=="\r";if(t)s+=Math.pow(t,-1.5);}document.getElementById('result').textContent=s;}
<textarea id="input" placeholder="Put your code here, one per line." style="width:100%;height:150px;box-sizing:border-box" oninput="updatescore(this)" onpropertychange="updatescore(this)"></textarea><div>Your score: <span id="result">0</span></div>
One better scoring rule may be the sum of 1/(program size+c)^1.5, where c is a constant. But I think it's probably too late to change it. – jimmy23013 – 2015-05-21T21:27:37.027
Can we add a multiplier for getting to a higher cardinal number, since that seems to be the goal? I got to twelve, higher than all the others, but still am losing. – mbomb007 – 2015-05-21T23:37:39.357
@mbomb007 Sorry for deliberately making Headsecks a lower score. But if Headsecks has just similar score to others, I guess Glypho will win too much (not to say Lenguage). – jimmy23013 – 2015-05-22T05:05:46.450
I want to do this in whitespace :( – YoYoYonnY – 2015-05-24T15:51:08.210
@YoYoYonnY You can but it is likely that Whitespace can only print
one
... – jimmy23013 – 2015-05-24T16:05:04.517@jimmy23013 A better scoring rule would be to count by number of programs, then by fewest total bytes. I think you could still change it, as it would encourage new answers. – mbomb007 – 2018-06-08T14:02:22.993
@mbomb007 It was intended to discourage Lenguage and Headsecks. While possibly it's not much to change the scoring, I'll probably disqualify at least one answer if I come up with other ways to discourage them. So better not. – jimmy23013 – 2018-06-08T15:04:44.530
1@mbomb007 If I'm asking a similar question again I'll probably add a small constant to the program sizes in the score. But it's too arbitrary to change in this question. – jimmy23013 – 2018-06-08T15:06:48.383