The task is a rather simple quine challenge with a twist, you must output your source code in the shape of a pyramid. The shape of a pyramid is defined below:
1
234
56789
ABCDEFG
HIJKLMNOP
QRSTUVWXYZa
bcdefghijklmn
......etc......
The main limitation of this challenge is that your quine must contain exactly enough bytes as to not obstruct the pattern of the pyramid. For instance, the following program lengths would work:
1-byter: 1st layer of the pyramid (not allowed by definition of a quine).
4-byter: 1st and 2nd layers of the pyramid.
9-byter: 1st, 2nd and 3rd layers of the pyramid.
etc...
So, if your program was:
QWERTY
It would not be valid, because it would arrange like:
Q
WER
TY
However, if your program was QWERTYUIO, it would be fine:
Q
WER
TYUIO
Rules
- Standard loopholes are obviously disallowed, no reading your own source.
- The pyramid must be centered, trailing characters are allowed, but not required.
- Also, any character may be used to center the pyramid, doesn't have to be
(char)32
.
- Also, any character may be used to center the pyramid, doesn't have to be
- Your quine must be able to be shaped into a pyramid.
- It must retain the original ordering of your sourcecode.
- Your source-code may NOT contain the character being used to format the pyramid.
- E.G. if your sourcecode contains a space, you'll need another char for the format.
- You may use comments in your quine to "pad" to the correct size.
- Obviously, these must be output as part of the quine.
- If the program contains newlines/tabs, they aren't part of the quine and should be omitted in the output.
- The shape is counted in characters, not bytes; if the shape is malformed you're not doing it right.
The lowest possible score here should be 4.