Code Golf Asked on December 28, 2021
Since this is a answer-chaining challenge, you might want to sort answers by oldest.
Your task is simple: Choose any printable ASCII character that’s not chosen in the previous answers. And then, you need to print your chosen character in your program to standard output. (You can ONLY print your chosen character, without printing other garbage to STDOUT)
Let’s say you picked x
as your chosen character, and your answer is the answer numbered y. You have to insert y x’s into the previous source code, at any position you like. For the first answer, the previous answer is the empty program.
Answers have to start with the number 1. So for example, I chose the character #
, and I posted a 1 byte answer in /// that prints the #
mark.
#
And then, the second answer (numbered 2) has to insert 2 of their picked x
character into the previous source code, such that the modified code will print their x
character. So assume this is written in Keg:
x#x
And then, the third answer has to do the same, and so on, until 95 is reached.
I’d love to see an explanation of your code as well, preferably with an online interpreter link!
# [{Language name}]({link-to-language}), {code-length} bytes
$y= {The number of your answer}$. Used so far: <code>{Characters used in answers so far}</code>
{your code}
x
‘s into the source code.$y=40$. Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<AB _z
.
(I have restored , which disappeared from this string earlier in the thread.)
zzz_z_AAzB<<ddzdcccczccccc__z_cccccccczccccccccccccdc==d=b=b=b=`HH&_AAAAzAAAAA_AAAAzAAAA_AAAAAB&&a&_&a&a&&.&&&&z&&&&&z&&&&&z&&&&&&&aaaazaaaaaa__aaaazaaaaa__aaaaa..fffffzfffff.ffffzffffzffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%z6AA__zAB66666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHzHHHHHHHzHHHHHHHHHzHHHH555555444444%*@**4%4_4*4*444444xx@xx".==033333%3333z3333s;s/s@/9____z_____0*%35*s46#".9s99%%9%____90s9/_____"/j0s,.`AB`ABccdcAAzAAAAAB"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxq__sj*j"0j%%jj'j,#"j%qs,q0q28/"%s@_//s;0;%;;0"s.77*7.========z================7777@xxxxxx@@..`````````z``````````````bbbbbbbbbbbbbbbbbbbbbbbzbbbddddzddddddddddddddddzdddddddd<<<<<<z<<<<<<__<<<<<<<<<z<<<<<<<<<<<<zBBBBBBBBBBBBzBBBBBBBBBBBBBBBBBB zzBzz
The previous answer has stood unchallenged for three weeks so it's time to spoil the party. The first three characters really sum up how I feel about the inventiveness of the present submission. It's perfectly set up for a FizzBuzz
finish, however.
Answered by Dingus on December 28, 2021
$y=39$. Used thus far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<AB _
__AAB<<dddccccccccc___ccccccccccccccccccccdc==d=b=b=b=`HH&_AAAAAAAAA_AAAAAAAA_AAAAAB&&a&_&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaa__aaaaaaaaa__aaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%6AA__AB66666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%4_4*4*444444xx@xx".==033333%33333333s;s/s@/9_________0*%35*s46#".9s99%%9%____90s9/_____"/j0s,.`AB`ABccdcAAAAAAAB"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxq__sj*j"0j%%jj'j,#"j%qs,q0q28/"%s@_//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd<<<<<<<<<<<<__<<<<<<<<<<<<<<<<<<<<<BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB B
Answered by Daniel H. on December 28, 2021
$y=38$. Used thus far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<AB
(trailing space)
AAB<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAAB&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%6AAAB66666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.`AB`ABccdcAAAAAAAB"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB B
Explanation:
I just went looking for some random languages that might work, to have something different than Keg and Trigger in the chain. I had never heard about Explode prior, but apparently the tape starts with the amount of spaces equal to the number of lines of the program; which is a single line, thus a single space in this case.
This tape is printed implicitly when the program terminates. Since the program (apparently) doesn't modify the tape in any way, this single space the tape started with is output as our result.
I might try to analyze what each character actually does in the program above, or try to use the language Explode for another challenge, but this will do for now.
Answered by Kevin Cruijssen on December 28, 2021
-rn
, 703 bytes$y=37$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<AB
AAB<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAAB&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%6AAAB66666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.`AB`ABccdcAAAAAAAB"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Answered by Mukundan314 on December 28, 2021
-rn
, 666 bytes$y=36$ , Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<A
AA<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&AAAAAAAAAAAAAAAAAAAAAA&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%6AAA66666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.`A`AccdcAAAAAAA"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Yet another one. Just like the other one.
Answered by lyxal on December 28, 2021
$y = 35$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=cd<
<<dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``ccdc"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Save as index.html
and run with w3m -dump index.html
, so it goes to stdout as expected.
<dd....
is an un-closed html tag, which rendered into nothing. So the first <
character rendered as HTML content.
w3m is an old school browser which use text I/O to render HTML. As this question is requiring stdout output. I'm also surprised that w3m may successfully parse and render such a malformed HTML.
Answered by tsh on December 28, 2021
$y = 34$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=c
dddcccccccccccccccccccccccccccccdc==d=b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``ccdc"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbbdddddddddddddddddddddddddddd
Answered by Mukundan314 on December 28, 2021
-rn
, 561 bytes$y=33$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=c
cccccccccccccccccccccccccccccc===b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``ccc"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbb
;P
Answered by lyxal on December 28, 2021
$y=32$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb=
===b=b=b=`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".==033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.========================7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbb
Answered by snowball on December 28, 2021
$y=31$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&Hb
bbb`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.66555555b55HHbHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..```````````````````````bbbbbbbbbbbbbbbbbbbbbbbbbb
Answered by Mukundan314 on December 28, 2021
$y=30$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&H
`HH&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555HHHHHHHHHHHHHHHHHHHHHHHHHHHH555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..```````````````````````
` Push codepoint of next character:
H 'H'
H Halt, printing TOS as a character
Answered by user92069 on December 28, 2021
$y = 29$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]`&
`&&&a&&a&a&&.&&&&&&&&&&&&&&&&&&&&&aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..```````````````````````
It seriously looks like Trigger and Keg are the only viable choices now. The second-twelfth bytes do the magic; it jumps to the second ".", so I could hide my ampersands.
Also, it looks like the "used so far" bit is broken now.
Answered by snowball on December 28, 2021
-rn
, 406 bytes$y=28$, 1'2q#,9/j;0"35s46%7*[email protected]`
`aaa.aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,.``"`*0"#s,`#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..```````````````````````
Hehe. I used the power of strings to essentially make those .
s nops.
Answered by lyxal on December 28, 2021
$y = 27$, Used so far: 1'2q#,9/j;0"35s46%7*[email protected]
aaa.aaaaaaaaaaaaaaaaaaaaaaaa..ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,."*0"#s,#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..
Answered by Mukundan314 on December 28, 2021
$y=26$. Used so far: 1'2q#,9/j;0"35s46%7*x@f8.
...ffffffffff.ffffffffffffff.88888.88888.88888.8888.88@.@@*@@@@@@@@7.%7*77%*7*77%666666%@x*78.8.87*7%*7*.7@7%6*@66666666.6655555555555555444444%*@**4%44*4*444444xx@xx".033333%33333333s;s/s@/90*%35*s46#".9s99%%9%90s9/"/j0s,."*0"#s,#,22s01;"*'s"*;0;j/@x..xxxx"s;x@xx..,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s.77*7.7777@xxxxxx@@..
We're out of digits now, that should make things a little more interesting. I think we've made every language other than Trigger unusable at this point...
Answered by Daniel H. on December 28, 2021
-hr
, 325 bytes$y=25$. Used so far: 1'2q#,9/j;0"35s46%7*x@f8
ffffffffffffffffffffffff888888888888888888888@@@*@@@@@@@@7%7*77%*7*77%666666%@x*78887*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s/s@/90*%35*s46#"9s99%%9%90s9/"/j0s,"*0"#s,#,22s01;"*'s"*;0;j/@xxxxx"s;x@xx,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q28/"%s@//s;0;%;;0"s77*77777@xxxxxx@@
(no explanation because I have no idea how Keg works)
Answered by Pizgenal Filegav on December 28, 2021
-hd
, 300 bytes$y=24$ Used so far: 1'2q#,9/j;0"35s46%7*x@f
ffffffffffffffffffffffff@@@*@@@@@@@@7%7*77%*7*77%666666%@x*77*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s/s@/90*%35*s46#"9s99%%9%90s9/"/j0s,"*0"#s,#,22s01;"*'s"*;0;j/@xxxxx"s;x@xx,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q2/"%s@//s;0;%;;0"s77*77777@xxxxxx@@
Harder? It actually made it easier. @
starts a function in Keg, and because there aren't any closing ƒ
s (and there won't be because it ain't ascii), everything after the first @
is ignored. What a clanger!
Answered by lyxal on December 28, 2021
$y=23$. Used so far: 1'2q#,9/j;0"35s46%7*x@
@@@*@@@@@@@@7%7*77%*7*77%666666%@x*77*7%*7*7@7%6*@666666666655555555555555444444%*@**4%44*4*444444xx@xx"033333%33333333s;s/s@/90*%35*s46#"9s99%%9%90s9/"/j0s,"*0"#s,#,22s01;"*'s"*;0;j/@xxxxx"s;x@xx,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q2/"%s@//s;0;%;;0"s77*77777@xxxxxx@@
Hopefully @
makes even more languages harder to use.... looking at you Befunge-98
Answered by Daniel H. on December 28, 2021
$y=22$. Used so far: 1'2q#,9/j;0"35s46%7*x
*7%7*77%*7*77%666666%x*77*7%*7*77%6*666666666655555555555555444444%***4%44*4*444444xxxx"033333%33333333s;s/s/90*%35*s46#"9s99%%9%90s9/"/j0s,"*0"#s,#,22s01;"*'s"*;0;j/xxxxx"s;xxx,0;%#x";xxqsj*j"0j%%jj'j,#"j%qs,q0q2/"%s//s;0;%;;0"s77*77777xxxxxx
After running the part before the first x
, the top of the stack is 6 0
(from the code 666%
). Thus, the x
instruction sets the program delta to (6, 0), meaning that the instruction pointer moves right 6 spaces every step. This skips over most of the remaining instructions, leaving %%66554*44"33s0s9/,,;*x",q0'j0%0"7x
to be executed. %%66544*44
does some stack manipulation, "33s0s9/,,;*x"
pushes the string x*;,,/9s0s33
, and ,
prints the first character of that string, which is x
. Finally, swaps the top two elements of the stack (which we don't care about) and
q
ends the program.
Answered by Pizgenal Filegav on December 28, 2021
$y=21$. Used so far: 1'2q#,9/j;0"35s46%7*
*7%7*77%*7*77%666666%*77*7%*7*77%6*666666666655555555555555444444%***4%44*4*444444"033333%33333333s;s/s/90*%35*s46#"9s99%%9%90s9/"/j0s,"*0"#s,#,22s01;"*'s"*;0;j/"s;,0;%#";qsj*j"0j%%jj'j,#"j%qs,q0q2/"%s//s;0;%;;0"s77*77777
This language is really weird. I got this working by pure luck after about an hour
Answered by AdamS on December 28, 2021
$y=20$. Used so far: 1'2q#,9/j;0"35s46%7
7%777%777%666666%777%777%6666666666655555555555555444444%4%444444444"033333%33333333s;s/s/90%35s46#"9s99%%9%90s9/"/j0s,"