Chess ASCII Art, Knight
up vote
6
down vote
favorite
Was meant to post this during the WCC which ended November 28th, however
Chess ASCII Art, Knight
In honor of the world chess championship, in the shortest possible program, output the following ASCII art piece
,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
This is a code-golf challenge
code-golf ascii-art kolmogorov-complexity
add a comment |
up vote
6
down vote
favorite
Was meant to post this during the WCC which ended November 28th, however
Chess ASCII Art, Knight
In honor of the world chess championship, in the shortest possible program, output the following ASCII art piece
,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
This is a code-golf challenge
code-golf ascii-art kolmogorov-complexity
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
10
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal.=`_.=`
, to clarify my above post)
– Zacharý
yesterday
19
Attribution should be given to the artist, Joan G. Stark. (really thejgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]
– Jonathan Allan
yesterday
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
Was meant to post this during the WCC which ended November 28th, however
Chess ASCII Art, Knight
In honor of the world chess championship, in the shortest possible program, output the following ASCII art piece
,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
This is a code-golf challenge
code-golf ascii-art kolmogorov-complexity
Was meant to post this during the WCC which ended November 28th, however
Chess ASCII Art, Knight
In honor of the world chess championship, in the shortest possible program, output the following ASCII art piece
,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
This is a code-golf challenge
code-golf ascii-art kolmogorov-complexity
code-golf ascii-art kolmogorov-complexity
edited yesterday
Oliver
4,5801831
4,5801831
asked yesterday
Thaufeki
449110
449110
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
10
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal.=`_.=`
, to clarify my above post)
– Zacharý
yesterday
19
Attribution should be given to the artist, Joan G. Stark. (really thejgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]
– Jonathan Allan
yesterday
add a comment |
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
10
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal.=`_.=`
, to clarify my above post)
– Zacharý
yesterday
19
Attribution should be given to the artist, Joan G. Stark. (really thejgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]
– Jonathan Allan
yesterday
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
10
10
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal
.=`_.=`
, to clarify my above post)– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal
.=`_.=`
, to clarify my above post)– Zacharý
yesterday
19
19
Attribution should be given to the artist, Joan G. Stark. (really the
jgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]– Jonathan Allan
yesterday
Attribution should be given to the artist, Joan G. Stark. (really the
jgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]– Jonathan Allan
yesterday
add a comment |
8 Answers
8
active
oldest
votes
up vote
5
down vote
Bubblegum, 121 bytes
0000000: 4d 88 41 0a c3 30 0c c0 ee 7e 85 e8 c5 2b 24 ce M.A..0...~...+$.
0000010: bd 5d 7f 62 66 c3 d8 2f fa f8 25 a1 ac d3 49 12 .].bf../..%...I.
0000020: 93 62 9d 22 c3 b6 c9 53 a6 b6 97 2f 99 26 d3 0b .b."...S.../.&..
0000030: 09 7c 7a f6 da 39 b9 d0 39 7a 7a 44 94 6a f0 5e .|z..9..9zzD.j.^
0000040: 65 9f 07 70 40 ab de 03 bf 9c b0 23 5d 72 df ce e..p@......#]r..
0000050: 2e 57 81 9e c3 80 88 91 a4 87 d9 71 64 d2 46 62 .W.........qd.Fb
0000060: 6a 11 61 55 6d 64 e3 87 0b 3c b4 56 9b d4 aa ab j.aUmd...<.V....
0000070: 40 fb 1f 2e c0 72 8f e5 0b @....r...
Generated using one million iterations of zopfli.
Try it online!
add a comment |
up vote
4
down vote
05AB1E, 161 160 159 bytes
“.x:
- `_',|=);/"(“•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•18вèJ'x„ :')"<^ec"S.;
Try it online.
Explanation:
“.x:
- `_',|=);/"(“ "# Push string “.x:n- `_',|=);/"(“
•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•
# Push compressed integer 1532509194139585460720091708988529417230251201435141848539215634452908064069037933952126795373218144903914399445860217134190447178041005939327862182902011890021922011111802137243520127270434546697795991176134771490926724967421961867359105461987058451420046014657947701790707048
18в # Convert to Base-18 as list: [1,1,1,10,0,0,0,0,10,3,1,5,10,2,2,2,2,2,2,13,3,1,10,2,2,15,13,8,16,6,6,0,3,5,10,2,2,15,10,5,6,1,5,13,6,0,3,10,2,2,14,5,11,1,1,1,1,9,0,3,10,2,2,11,1,8,7,7,7,10,4,0,1,13,13,3,14,2,2,11,1,1,5,8,1,5,9,4,9,3,14,2,2,11,1,1,1,8,3,14,2,2,11,1,5,7,0,12,6,8,3,6,14,2,11,0,12,6,5,7,0,12,6,8,3,1,9,11,7,0,12,6,1,5,7,7,8,3,1,5,6,8,7,0,0,12,12,6,6,5,15,3,1,1,0,9,0,7,7,7,0,4,9,0,3,1,5,15,1,1,1,1,1,8,3,1,17,9,4,4,0,0,0,0,0,0,4,4,9,13,3,1,15,9,4,4,0,0,0,0,0,0,4,4,9,8,3,1,5,16,4,4,0,0,0,0,0,0,4,4,16]
è # Index each into the string
J # Join everything together
See this 05AB1E tips of mine (sections How to compress large integers? and How to compress integer lists?) to understand how the compression of the integer and integer-list is done.
We now have:
xxx,....,
x ,::::::)
x,::/)"``.
,::/, `x )`.
,::; |xxxx'.
,::|x___,-.x))
;::|xx x '-'
;::|xxx
;::|x _.=`
`;:|.=` _.=`
x'|_.=`x __
x `_..==`` /
xx.'.___.-'.
x /xxxxx
x('--......--')
x/'--......--'
x "--......--"
We then:
'x„ : '# Replace every "x" with two spaces " "
')"<^ec"S.; '# And replace the first four ")" with "<", "^", "e", "c" respectively
# (and the result is output implicitly)
Using the <^ec
directly in the compression without the ')"<^ec"S.;
is 1 byte longer, and using the double spaces instead of x
directly in the compression is an additional 8 bytes longer.
Trying to replace --......--
for single characters in the compression is unfortunately 1 byte longer instead of saving bytes.
add a comment |
up vote
4
down vote
JavaScript (ES8), 236 bytes
_=>`6,....,
3,::::::<
2,::/^0"11.
,::/, 13e1.
,::; |8'.
,::|20___,-.2c)
;::|503'-'
;::|60
;::|3_.=10
1;:|.=1 _.=10
2'|_.=13__0
310_..==11 /
4.'.___.-'.
3/820
2('9')
2/'9'0
3"9"`.replace(/d/g,n=>n-9?'\`'[n]||''.padEnd(n):'--......--')
Try it online!
Original ASCII art
Using the same method, the original ASCII art by Joan G. Stark is 248 bytes.
How?
We use a template string so that we can insert literal line-feeds. Unfortunately, the knight includes some backticks that would now need to be escaped. It also includes several backslashes.
Instead of escaping these characters, we replace them with a digit. Other digits are used to encode space patterns and the special string "--......--"
, which is used 3 times and worth encoding.
$0$ → backslash
$1$ → backtick
$9$ → the string"--......--"
- any other digit $N$ → $N$ spaces
add a comment |
up vote
3
down vote
Java (JDK), 273 bytes
v->"yyy,....,ny ,::::::<ny,::/^\"``.n ,::/, `y e`.n,::; |yyyy'.n,::|y\___,-.yc)n;::|yy \y '-'n;::|yyy\n;::|y _.=`\n`;:|.=` _.=`\ny'|_.=`y __\ny `\_..==`` /nyy.'.___.-'.n /yyyyy\ny('x')ny/'x'\ny "x"".replace("x","--......--").replace("y"," ")
Try it online!
How original! Thank you Java ;)
Credits
- -16 bytes thanks to Kevin Cruijssen
For a more elaborate version, please add lotsa bytes:
Java (JDK), 315 bytes
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
Try it online!
Credits
- -13 bytes thanks to Holger
1
You can save two bytes by replacing the three--......--
withx
and adding a.replace("x","--......--")
: Try it online 287 bytes.
– Kevin Cruijssen
yesterday
1
273 bytes by also replacing every two spaces with any
and adding.replace("y"," ")
as I did in my 05AB1E answer.
– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence theBigInteger
solution), but hadn't thought about specificreplace
s. Nice!
– Olivier Grégoire
21 hours ago
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string likev->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing withBigInteger
.
– Holger
20 hours ago
1
As a side note, even Base64 does not pay off due to the additional surrounding code:v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
|
show 1 more comment
up vote
3
down vote
Brainfuck, 865 characters
Don't ask me why I did this
++++++++[>>++++>++++++>+++++++>+++++++++++++++>++++++>+++++++>++++++++++++>+++++
+++++++>++++>+[<]<-]>>++>---->++>++++>->++++>>-->>++<......[<]>>.++....--.[>]<.<
...[<]>>.>......>>>.>>>>.<..[<]>>.>..>>.>>>.--.[<]>.[>]<<<<..<<<<<++.[>]<.<.[<]>
>--.>..>>.<<<.[>]<<.<<.>>...<<+++++.-----<<<<<++.[>]<.[<]>>--.>..+.[>]<<.<<<<<.>
>>>>........[<]>+++++.>++.[>]<.[<]>>--.>-..>.>>>>>..<.+++...[<]>>.+.+.[>]<<..<<+
++.[<]>++.[>]<.[<]>>>+.-..>.>>>>>.....<---.>...[<]>--.>-.<.[>]<.[<]>>>+.-..>.>>>
>>......<.>>.[<]>>>+.-..>.>>>>>...<+++.[<]>>+.>>>>+.>---.>---.>>.<<<.<<<<+.-.>.<
<.>>>>.>.>>.<+++.[<]>>.>>>>.>.>---.>>.<..[<]>.>>>.>>>>+++.[<]>>.>>>>.>.>>...<..-
--.>>.<...<<.>.+++.[<]>>..>>>>..>..>>.<<<<.[>]<.<....[<]>>.<.>.>>>>>>...<<<<<<.-
.<.>+.[>]<.<...<<<<.>>>>.........<---.>>.<..[<]>+.-.>-..+......-..<.++.[>]<.<..<
<<<.<<<<--.>..+......-..<.[>]<<<.>>.<...[<]>-----.>..+......-..<.
with comments:
[ ,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
" 34 ' 39 ( 40 ) 41 c2
, 44 - 45 . 46 c3
: 58 ; 59 c4
| 124 c5
/ 47 c6
< 60 = 61 c7
` 96 c 99 e 101 c8
92 ^ 94 _ 95 c9
space 30 c10
linefeed 10 c11
]
+++++ +++ c0: 8 loopcell
[
>> ++++ c2 plus 4
> +++++ + c3 plus 6
> +++++ ++ c4 plus 7
> +++++ +++++ +++++ c5 plus 15
> +++++ + c6 plus 6
> +++++ ++ c7 plus 7
> +++++ +++++ ++ c8 plus 12
> +++++ +++++ ++ c9 plus 12
> ++++ c10 plus 4
> + c11 plus 8
[<]< - back to c0 and decrement
]
>> ++ c2: 34
> ---- c3: 44
> ++ c4: 58
> ++++ c5: 124
> - c6: 47
> ++++ c7: 60
> c8: 96
> -- c9: 94
> c10: 32
> ++ c11: 10
line 1
< ...... c10: 32
[<]>> . ++ .... -- . c3: 44
[>]< . newline
line 2
< ... c10 : 32
[<]>> . c3: 44
> ...... c4: 58
>>> . c7: 60
>>>> . newline
line 3
< .. c10 : 32
[<]>> . c3: 44
> .. c4: 58
>> . c6: 47
>>> . -- . c9: 92
[<]> . c2: 34
[>]<<<< .. c8: 96
<<<<< ++ . c3: 46
[>]< . newline
line 4
< . c10: 32
[<]>> -- . c3: 4
> .. c4: 58
>> . c6: 47
<<< . c3 46
[>]<< . c10: 32
<< . c8: 96
>> ... c10: 32
<< +++++ . ----- . c8: 96
<<<<< ++ . c3: 46
[>]< . newline
Line 5
[<]>> -- . c3: 44
> .. + . c4: 59
[>]<< . c10: 32
<<<<< . c5: 124
>>>>> ..... ... c10: 32
[<]> +++++ . c2: 39
> ++ . c3: 46
[>]< . newline
line 6
[<]>> -- . c3: 44
> - .. c4: 58
> . c5: 124
>>>>> .. c10: 32
< . +++ ... c9: 95
[<]>> . + . + . c3: 46
[>]<< .. c10: 32
<< +++ . c8: 99
[<]> ++ . c2: 41
[>]< . newline
Line 7
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ..... c10: 32
< --- . c9: 92
> ... c10: 32
[<]> -- . c2: 39
> - . c3: 46
< . c2: 39
[>]< . newline
Line 8
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ...... c10: 32
< . c9: 92
>> . new line
Line 9
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ... c10: 32
< +++ . c9: 95
[<]>> + . c3: 46
>>>> + . c7: 61
> --- . c8: 96
> --- . c9: 92
>> . newline
Line 10
<<< . c8: 96
<<<< + . - . c4: 58
> . c5: 124
<< . c3: 46
>>>> . c7: 61
> . c8: 96
>> . c10: 32
< +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
> --- . c9: 92
>> . newline
Line 11
< .. c10: 32
[<]> . c2: 39
>>> . c5: 124
>>>> +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
>> ... c10: 32
< .. --- . c9: 92
>> . newline
Line 12
< ... c10: 32
<< . c8: 96
> . +++ . c9: 95
[<]>> .. c3: 46
>>>> .. c7: 61
> .. c8: 96
>> . c10: 32
<<<< . c6: 47
[>]< . newline
Line 13
< .... c10: 32
[<]>> . c3: 46
< . c2: 39
> . c3: 46
>>>>> > ... c9: 95
<<<<< < . - . c3: 45
< . c2: 39
> + . c3: 46
[>]< . newline
Line 14
< ... c10: 32
<<<< . c6: 47
>>>> ..... ..... c10: 32
< --- . c9: 92
>> . newline
Line 15
< .. c10: 32
[<]> + . - . c2: 39
> - .. + ..... . - .. c3: 45
< . ++ . c2: 41
[>]< . newline
Line 16
< .. c10: 32
<<<< . c6: 47
<<<< -- . c2: 39
> .. + ..... . - .. c3: 45
< . c2: 39
[>]<<< . c9: 92
>> . newline
Line 17
< ... c10: 32
[<]> ----- . c2: 34
> .. + ..... . - .. c3: 45
< . newline
Try it online
New contributor
add a comment |
up vote
2
down vote
Canvas, 131 129 128 bytes
r}{rfcx↖o0w}tf‽«≥⇵‾u┴Rnp,t≠8↓ab╬∑⁹/9h.→b◂LDp;Cxq$Ps~*@i6bWt╪L#We↘²l%qJ⁰a|2]?¼-┘╫rlM⁹&O¾×{Y?-)╵Z⁴;⇵Z¼e`i‼ø‟⁶∑[A┼X╋╋3g↑B/J:◂ŗ"‟║∔
Try it here!
Compression, plus palindromizing the bottom 4 lines
add a comment |
up vote
2
down vote
Jelly, 157 bytes
“<ẏʂɦDçḢñ×%Ḟj ṗẹẠ⁸%§⁵ġTÞj}eĿƬ0lḳ)þaṛƭÆƇỴɱ)rȦẋ}=ėMȮDḂıçEYĠⱮȮɗ%ẈẒṭÆ5§aɓNỤ⁹=ZÐḃ⁶ṣṭṂe÷ɲẎḤøƈƓuⱮfl’ṃ“ ,.¶:!/`;|'_-=”Ḥ“¦]Ẓ$øSṫ)⁼⁻ḊAḣɠ5ƤVĊ_⁺œAʋ½’BT¤¦ṣ”!ż“<^"ec)()""
A full-program printing the art.
Try it online!
How?
Almost certainly not optimal
“...’ṃ“ ,.¶:!/`;|'_-=”Ḥ“...’BT¤¦ṣ”!ż“<^"ec)()"" - Main Link: no arguments
“...’ - base 250 integer = 40456038316861238392937374894157290550238585275386707138893559485980776818421971180905923819853990224605051183032957226663498407152675710453520748595760648781544778088699103552320167328800583390864726325837494040650859
“ ,.¶:!/`;|'_-=” - list of characters " ,.¶:!/`;|'_-="
- Note: ¶ is really a newline character
ṃ - decompress (use the 15 chars as base 15 digits)
¦ - sparse application...
- ...to indices:
¤ - nilad followed by link(s) as a nilad:
“...’ - base 250 integer = 90651644424142209479178402838382929265611178277832292511
B - to binary = 111011001001110010100001000010000100000010001111000010101000010000101100100000010111000101000000000000000000000100000010100100001110001100010000001001111100100111110001001111100010011111
T - truthy indices = [1,2,3,5,6,9,12,13,14,17,19,24,29,34,41,45,46,47,48,53,55,57,62,67,69,70,73,80,82,83,84,88,90,112,119,121,124,129,130,131,135,136,140,147,150,151,152,153,154,157,160,161,162,163,164,168,171,172,173,174,175,179,182,183,184,185,186]
- ...action:
Ḥ - double (e.g. 'x' -> 'xx')
ṣ - split at:
”! - literal '!' character
ż - zip with:
“<^"ec)()"" - list of characters '<^"ec)()""'
- (implicit closing ”)
- implicit, smashing print
add a comment |
up vote
1
down vote
Charcoal, 138 bytes
”}∧αP3|%g↥⪪⁻↘gMGu↘◧(⟲₂≧⟦⁵I↑λ‽"d⌈Z↗Xκ›⍘‽▷xλ:C³↶⎇³Þê¡)QO=IT¡G▶gT~№vEK→VpZx﹪η↥2⁷Oa↙8 ⁷¹↘‽…E±ι·Cυ‴⁻▶~⧴EY⸿↓⊗⊘.⭆ⅉW";‖qNP¬⁺_↙- M÷Opbνω?,#JQΣ8~⪫↥W
Try it online! Link is to verbose version of code... well, it's a single Print statement, as this is just a single compressed string; I tried reflecting the base but that cost 6 bytes.
add a comment |
8 Answers
8
active
oldest
votes
8 Answers
8
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
Bubblegum, 121 bytes
0000000: 4d 88 41 0a c3 30 0c c0 ee 7e 85 e8 c5 2b 24 ce M.A..0...~...+$.
0000010: bd 5d 7f 62 66 c3 d8 2f fa f8 25 a1 ac d3 49 12 .].bf../..%...I.
0000020: 93 62 9d 22 c3 b6 c9 53 a6 b6 97 2f 99 26 d3 0b .b."...S.../.&..
0000030: 09 7c 7a f6 da 39 b9 d0 39 7a 7a 44 94 6a f0 5e .|z..9..9zzD.j.^
0000040: 65 9f 07 70 40 ab de 03 bf 9c b0 23 5d 72 df ce e..p@......#]r..
0000050: 2e 57 81 9e c3 80 88 91 a4 87 d9 71 64 d2 46 62 .W.........qd.Fb
0000060: 6a 11 61 55 6d 64 e3 87 0b 3c b4 56 9b d4 aa ab j.aUmd...<.V....
0000070: 40 fb 1f 2e c0 72 8f e5 0b @....r...
Generated using one million iterations of zopfli.
Try it online!
add a comment |
up vote
5
down vote
Bubblegum, 121 bytes
0000000: 4d 88 41 0a c3 30 0c c0 ee 7e 85 e8 c5 2b 24 ce M.A..0...~...+$.
0000010: bd 5d 7f 62 66 c3 d8 2f fa f8 25 a1 ac d3 49 12 .].bf../..%...I.
0000020: 93 62 9d 22 c3 b6 c9 53 a6 b6 97 2f 99 26 d3 0b .b."...S.../.&..
0000030: 09 7c 7a f6 da 39 b9 d0 39 7a 7a 44 94 6a f0 5e .|z..9..9zzD.j.^
0000040: 65 9f 07 70 40 ab de 03 bf 9c b0 23 5d 72 df ce e..p@......#]r..
0000050: 2e 57 81 9e c3 80 88 91 a4 87 d9 71 64 d2 46 62 .W.........qd.Fb
0000060: 6a 11 61 55 6d 64 e3 87 0b 3c b4 56 9b d4 aa ab j.aUmd...<.V....
0000070: 40 fb 1f 2e c0 72 8f e5 0b @....r...
Generated using one million iterations of zopfli.
Try it online!
add a comment |
up vote
5
down vote
up vote
5
down vote
Bubblegum, 121 bytes
0000000: 4d 88 41 0a c3 30 0c c0 ee 7e 85 e8 c5 2b 24 ce M.A..0...~...+$.
0000010: bd 5d 7f 62 66 c3 d8 2f fa f8 25 a1 ac d3 49 12 .].bf../..%...I.
0000020: 93 62 9d 22 c3 b6 c9 53 a6 b6 97 2f 99 26 d3 0b .b."...S.../.&..
0000030: 09 7c 7a f6 da 39 b9 d0 39 7a 7a 44 94 6a f0 5e .|z..9..9zzD.j.^
0000040: 65 9f 07 70 40 ab de 03 bf 9c b0 23 5d 72 df ce e..p@......#]r..
0000050: 2e 57 81 9e c3 80 88 91 a4 87 d9 71 64 d2 46 62 .W.........qd.Fb
0000060: 6a 11 61 55 6d 64 e3 87 0b 3c b4 56 9b d4 aa ab j.aUmd...<.V....
0000070: 40 fb 1f 2e c0 72 8f e5 0b @....r...
Generated using one million iterations of zopfli.
Try it online!
Bubblegum, 121 bytes
0000000: 4d 88 41 0a c3 30 0c c0 ee 7e 85 e8 c5 2b 24 ce M.A..0...~...+$.
0000010: bd 5d 7f 62 66 c3 d8 2f fa f8 25 a1 ac d3 49 12 .].bf../..%...I.
0000020: 93 62 9d 22 c3 b6 c9 53 a6 b6 97 2f 99 26 d3 0b .b."...S.../.&..
0000030: 09 7c 7a f6 da 39 b9 d0 39 7a 7a 44 94 6a f0 5e .|z..9..9zzD.j.^
0000040: 65 9f 07 70 40 ab de 03 bf 9c b0 23 5d 72 df ce e..p@......#]r..
0000050: 2e 57 81 9e c3 80 88 91 a4 87 d9 71 64 d2 46 62 .W.........qd.Fb
0000060: 6a 11 61 55 6d 64 e3 87 0b 3c b4 56 9b d4 aa ab j.aUmd...<.V....
0000070: 40 fb 1f 2e c0 72 8f e5 0b @....r...
Generated using one million iterations of zopfli.
Try it online!
answered yesterday
Dennis♦
185k32295732
185k32295732
add a comment |
add a comment |
up vote
4
down vote
05AB1E, 161 160 159 bytes
“.x:
- `_',|=);/"(“•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•18вèJ'x„ :')"<^ec"S.;
Try it online.
Explanation:
“.x:
- `_',|=);/"(“ "# Push string “.x:n- `_',|=);/"(“
•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•
# Push compressed integer 1532509194139585460720091708988529417230251201435141848539215634452908064069037933952126795373218144903914399445860217134190447178041005939327862182902011890021922011111802137243520127270434546697795991176134771490926724967421961867359105461987058451420046014657947701790707048
18в # Convert to Base-18 as list: [1,1,1,10,0,0,0,0,10,3,1,5,10,2,2,2,2,2,2,13,3,1,10,2,2,15,13,8,16,6,6,0,3,5,10,2,2,15,10,5,6,1,5,13,6,0,3,10,2,2,14,5,11,1,1,1,1,9,0,3,10,2,2,11,1,8,7,7,7,10,4,0,1,13,13,3,14,2,2,11,1,1,5,8,1,5,9,4,9,3,14,2,2,11,1,1,1,8,3,14,2,2,11,1,5,7,0,12,6,8,3,6,14,2,11,0,12,6,5,7,0,12,6,8,3,1,9,11,7,0,12,6,1,5,7,7,8,3,1,5,6,8,7,0,0,12,12,6,6,5,15,3,1,1,0,9,0,7,7,7,0,4,9,0,3,1,5,15,1,1,1,1,1,8,3,1,17,9,4,4,0,0,0,0,0,0,4,4,9,13,3,1,15,9,4,4,0,0,0,0,0,0,4,4,9,8,3,1,5,16,4,4,0,0,0,0,0,0,4,4,16]
è # Index each into the string
J # Join everything together
See this 05AB1E tips of mine (sections How to compress large integers? and How to compress integer lists?) to understand how the compression of the integer and integer-list is done.
We now have:
xxx,....,
x ,::::::)
x,::/)"``.
,::/, `x )`.
,::; |xxxx'.
,::|x___,-.x))
;::|xx x '-'
;::|xxx
;::|x _.=`
`;:|.=` _.=`
x'|_.=`x __
x `_..==`` /
xx.'.___.-'.
x /xxxxx
x('--......--')
x/'--......--'
x "--......--"
We then:
'x„ : '# Replace every "x" with two spaces " "
')"<^ec"S.; '# And replace the first four ")" with "<", "^", "e", "c" respectively
# (and the result is output implicitly)
Using the <^ec
directly in the compression without the ')"<^ec"S.;
is 1 byte longer, and using the double spaces instead of x
directly in the compression is an additional 8 bytes longer.
Trying to replace --......--
for single characters in the compression is unfortunately 1 byte longer instead of saving bytes.
add a comment |
up vote
4
down vote
05AB1E, 161 160 159 bytes
“.x:
- `_',|=);/"(“•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•18вèJ'x„ :')"<^ec"S.;
Try it online.
Explanation:
“.x:
- `_',|=);/"(“ "# Push string “.x:n- `_',|=);/"(“
•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•
# Push compressed integer 1532509194139585460720091708988529417230251201435141848539215634452908064069037933952126795373218144903914399445860217134190447178041005939327862182902011890021922011111802137243520127270434546697795991176134771490926724967421961867359105461987058451420046014657947701790707048
18в # Convert to Base-18 as list: [1,1,1,10,0,0,0,0,10,3,1,5,10,2,2,2,2,2,2,13,3,1,10,2,2,15,13,8,16,6,6,0,3,5,10,2,2,15,10,5,6,1,5,13,6,0,3,10,2,2,14,5,11,1,1,1,1,9,0,3,10,2,2,11,1,8,7,7,7,10,4,0,1,13,13,3,14,2,2,11,1,1,5,8,1,5,9,4,9,3,14,2,2,11,1,1,1,8,3,14,2,2,11,1,5,7,0,12,6,8,3,6,14,2,11,0,12,6,5,7,0,12,6,8,3,1,9,11,7,0,12,6,1,5,7,7,8,3,1,5,6,8,7,0,0,12,12,6,6,5,15,3,1,1,0,9,0,7,7,7,0,4,9,0,3,1,5,15,1,1,1,1,1,8,3,1,17,9,4,4,0,0,0,0,0,0,4,4,9,13,3,1,15,9,4,4,0,0,0,0,0,0,4,4,9,8,3,1,5,16,4,4,0,0,0,0,0,0,4,4,16]
è # Index each into the string
J # Join everything together
See this 05AB1E tips of mine (sections How to compress large integers? and How to compress integer lists?) to understand how the compression of the integer and integer-list is done.
We now have:
xxx,....,
x ,::::::)
x,::/)"``.
,::/, `x )`.
,::; |xxxx'.
,::|x___,-.x))
;::|xx x '-'
;::|xxx
;::|x _.=`
`;:|.=` _.=`
x'|_.=`x __
x `_..==`` /
xx.'.___.-'.
x /xxxxx
x('--......--')
x/'--......--'
x "--......--"
We then:
'x„ : '# Replace every "x" with two spaces " "
')"<^ec"S.; '# And replace the first four ")" with "<", "^", "e", "c" respectively
# (and the result is output implicitly)
Using the <^ec
directly in the compression without the ')"<^ec"S.;
is 1 byte longer, and using the double spaces instead of x
directly in the compression is an additional 8 bytes longer.
Trying to replace --......--
for single characters in the compression is unfortunately 1 byte longer instead of saving bytes.
add a comment |
up vote
4
down vote
up vote
4
down vote
05AB1E, 161 160 159 bytes
“.x:
- `_',|=);/"(“•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•18вèJ'x„ :')"<^ec"S.;
Try it online.
Explanation:
“.x:
- `_',|=);/"(“ "# Push string “.x:n- `_',|=);/"(“
•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•
# Push compressed integer 1532509194139585460720091708988529417230251201435141848539215634452908064069037933952126795373218144903914399445860217134190447178041005939327862182902011890021922011111802137243520127270434546697795991176134771490926724967421961867359105461987058451420046014657947701790707048
18в # Convert to Base-18 as list: [1,1,1,10,0,0,0,0,10,3,1,5,10,2,2,2,2,2,2,13,3,1,10,2,2,15,13,8,16,6,6,0,3,5,10,2,2,15,10,5,6,1,5,13,6,0,3,10,2,2,14,5,11,1,1,1,1,9,0,3,10,2,2,11,1,8,7,7,7,10,4,0,1,13,13,3,14,2,2,11,1,1,5,8,1,5,9,4,9,3,14,2,2,11,1,1,1,8,3,14,2,2,11,1,5,7,0,12,6,8,3,6,14,2,11,0,12,6,5,7,0,12,6,8,3,1,9,11,7,0,12,6,1,5,7,7,8,3,1,5,6,8,7,0,0,12,12,6,6,5,15,3,1,1,0,9,0,7,7,7,0,4,9,0,3,1,5,15,1,1,1,1,1,8,3,1,17,9,4,4,0,0,0,0,0,0,4,4,9,13,3,1,15,9,4,4,0,0,0,0,0,0,4,4,9,8,3,1,5,16,4,4,0,0,0,0,0,0,4,4,16]
è # Index each into the string
J # Join everything together
See this 05AB1E tips of mine (sections How to compress large integers? and How to compress integer lists?) to understand how the compression of the integer and integer-list is done.
We now have:
xxx,....,
x ,::::::)
x,::/)"``.
,::/, `x )`.
,::; |xxxx'.
,::|x___,-.x))
;::|xx x '-'
;::|xxx
;::|x _.=`
`;:|.=` _.=`
x'|_.=`x __
x `_..==`` /
xx.'.___.-'.
x /xxxxx
x('--......--')
x/'--......--'
x "--......--"
We then:
'x„ : '# Replace every "x" with two spaces " "
')"<^ec"S.; '# And replace the first four ")" with "<", "^", "e", "c" respectively
# (and the result is output implicitly)
Using the <^ec
directly in the compression without the ')"<^ec"S.;
is 1 byte longer, and using the double spaces instead of x
directly in the compression is an additional 8 bytes longer.
Trying to replace --......--
for single characters in the compression is unfortunately 1 byte longer instead of saving bytes.
05AB1E, 161 160 159 bytes
“.x:
- `_',|=);/"(“•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•18вèJ'x„ :')"<^ec"S.;
Try it online.
Explanation:
“.x:
- `_',|=);/"(“ "# Push string “.x:n- `_',|=);/"(“
•ζd`Õ)Åι9·D¸«Qƶ∊r¸r)!Δ†„e€NTвŠÊ~¡ζä|8b<ε66Úèò‘è>ïË°ĀuΔŠºqô₃?j,;Ú∊ΓмĆ˜8®‘9ô.ε:ž}ìð;üÕ›т„Þ¿¥ °åβêÅδ(Ž7¼’ζƶ¤u‚ðж½èн¶Y)•
# Push compressed integer 1532509194139585460720091708988529417230251201435141848539215634452908064069037933952126795373218144903914399445860217134190447178041005939327862182902011890021922011111802137243520127270434546697795991176134771490926724967421961867359105461987058451420046014657947701790707048
18в # Convert to Base-18 as list: [1,1,1,10,0,0,0,0,10,3,1,5,10,2,2,2,2,2,2,13,3,1,10,2,2,15,13,8,16,6,6,0,3,5,10,2,2,15,10,5,6,1,5,13,6,0,3,10,2,2,14,5,11,1,1,1,1,9,0,3,10,2,2,11,1,8,7,7,7,10,4,0,1,13,13,3,14,2,2,11,1,1,5,8,1,5,9,4,9,3,14,2,2,11,1,1,1,8,3,14,2,2,11,1,5,7,0,12,6,8,3,6,14,2,11,0,12,6,5,7,0,12,6,8,3,1,9,11,7,0,12,6,1,5,7,7,8,3,1,5,6,8,7,0,0,12,12,6,6,5,15,3,1,1,0,9,0,7,7,7,0,4,9,0,3,1,5,15,1,1,1,1,1,8,3,1,17,9,4,4,0,0,0,0,0,0,4,4,9,13,3,1,15,9,4,4,0,0,0,0,0,0,4,4,9,8,3,1,5,16,4,4,0,0,0,0,0,0,4,4,16]
è # Index each into the string
J # Join everything together
See this 05AB1E tips of mine (sections How to compress large integers? and How to compress integer lists?) to understand how the compression of the integer and integer-list is done.
We now have:
xxx,....,
x ,::::::)
x,::/)"``.
,::/, `x )`.
,::; |xxxx'.
,::|x___,-.x))
;::|xx x '-'
;::|xxx
;::|x _.=`
`;:|.=` _.=`
x'|_.=`x __
x `_..==`` /
xx.'.___.-'.
x /xxxxx
x('--......--')
x/'--......--'
x "--......--"
We then:
'x„ : '# Replace every "x" with two spaces " "
')"<^ec"S.; '# And replace the first four ")" with "<", "^", "e", "c" respectively
# (and the result is output implicitly)
Using the <^ec
directly in the compression without the ')"<^ec"S.;
is 1 byte longer, and using the double spaces instead of x
directly in the compression is an additional 8 bytes longer.
Trying to replace --......--
for single characters in the compression is unfortunately 1 byte longer instead of saving bytes.
edited 21 hours ago
answered yesterday
Kevin Cruijssen
34.9k554184
34.9k554184
add a comment |
add a comment |
up vote
4
down vote
JavaScript (ES8), 236 bytes
_=>`6,....,
3,::::::<
2,::/^0"11.
,::/, 13e1.
,::; |8'.
,::|20___,-.2c)
;::|503'-'
;::|60
;::|3_.=10
1;:|.=1 _.=10
2'|_.=13__0
310_..==11 /
4.'.___.-'.
3/820
2('9')
2/'9'0
3"9"`.replace(/d/g,n=>n-9?'\`'[n]||''.padEnd(n):'--......--')
Try it online!
Original ASCII art
Using the same method, the original ASCII art by Joan G. Stark is 248 bytes.
How?
We use a template string so that we can insert literal line-feeds. Unfortunately, the knight includes some backticks that would now need to be escaped. It also includes several backslashes.
Instead of escaping these characters, we replace them with a digit. Other digits are used to encode space patterns and the special string "--......--"
, which is used 3 times and worth encoding.
$0$ → backslash
$1$ → backtick
$9$ → the string"--......--"
- any other digit $N$ → $N$ spaces
add a comment |
up vote
4
down vote
JavaScript (ES8), 236 bytes
_=>`6,....,
3,::::::<
2,::/^0"11.
,::/, 13e1.
,::; |8'.
,::|20___,-.2c)
;::|503'-'
;::|60
;::|3_.=10
1;:|.=1 _.=10
2'|_.=13__0
310_..==11 /
4.'.___.-'.
3/820
2('9')
2/'9'0
3"9"`.replace(/d/g,n=>n-9?'\`'[n]||''.padEnd(n):'--......--')
Try it online!
Original ASCII art
Using the same method, the original ASCII art by Joan G. Stark is 248 bytes.
How?
We use a template string so that we can insert literal line-feeds. Unfortunately, the knight includes some backticks that would now need to be escaped. It also includes several backslashes.
Instead of escaping these characters, we replace them with a digit. Other digits are used to encode space patterns and the special string "--......--"
, which is used 3 times and worth encoding.
$0$ → backslash
$1$ → backtick
$9$ → the string"--......--"
- any other digit $N$ → $N$ spaces
add a comment |
up vote
4
down vote
up vote
4
down vote
JavaScript (ES8), 236 bytes
_=>`6,....,
3,::::::<
2,::/^0"11.
,::/, 13e1.
,::; |8'.
,::|20___,-.2c)
;::|503'-'
;::|60
;::|3_.=10
1;:|.=1 _.=10
2'|_.=13__0
310_..==11 /
4.'.___.-'.
3/820
2('9')
2/'9'0
3"9"`.replace(/d/g,n=>n-9?'\`'[n]||''.padEnd(n):'--......--')
Try it online!
Original ASCII art
Using the same method, the original ASCII art by Joan G. Stark is 248 bytes.
How?
We use a template string so that we can insert literal line-feeds. Unfortunately, the knight includes some backticks that would now need to be escaped. It also includes several backslashes.
Instead of escaping these characters, we replace them with a digit. Other digits are used to encode space patterns and the special string "--......--"
, which is used 3 times and worth encoding.
$0$ → backslash
$1$ → backtick
$9$ → the string"--......--"
- any other digit $N$ → $N$ spaces
JavaScript (ES8), 236 bytes
_=>`6,....,
3,::::::<
2,::/^0"11.
,::/, 13e1.
,::; |8'.
,::|20___,-.2c)
;::|503'-'
;::|60
;::|3_.=10
1;:|.=1 _.=10
2'|_.=13__0
310_..==11 /
4.'.___.-'.
3/820
2('9')
2/'9'0
3"9"`.replace(/d/g,n=>n-9?'\`'[n]||''.padEnd(n):'--......--')
Try it online!
Original ASCII art
Using the same method, the original ASCII art by Joan G. Stark is 248 bytes.
How?
We use a template string so that we can insert literal line-feeds. Unfortunately, the knight includes some backticks that would now need to be escaped. It also includes several backslashes.
Instead of escaping these characters, we replace them with a digit. Other digits are used to encode space patterns and the special string "--......--"
, which is used 3 times and worth encoding.
$0$ → backslash
$1$ → backtick
$9$ → the string"--......--"
- any other digit $N$ → $N$ spaces
edited 18 hours ago
answered yesterday
Arnauld
70.5k687298
70.5k687298
add a comment |
add a comment |
up vote
3
down vote
Java (JDK), 273 bytes
v->"yyy,....,ny ,::::::<ny,::/^\"``.n ,::/, `y e`.n,::; |yyyy'.n,::|y\___,-.yc)n;::|yy \y '-'n;::|yyy\n;::|y _.=`\n`;:|.=` _.=`\ny'|_.=`y __\ny `\_..==`` /nyy.'.___.-'.n /yyyyy\ny('x')ny/'x'\ny "x"".replace("x","--......--").replace("y"," ")
Try it online!
How original! Thank you Java ;)
Credits
- -16 bytes thanks to Kevin Cruijssen
For a more elaborate version, please add lotsa bytes:
Java (JDK), 315 bytes
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
Try it online!
Credits
- -13 bytes thanks to Holger
1
You can save two bytes by replacing the three--......--
withx
and adding a.replace("x","--......--")
: Try it online 287 bytes.
– Kevin Cruijssen
yesterday
1
273 bytes by also replacing every two spaces with any
and adding.replace("y"," ")
as I did in my 05AB1E answer.
– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence theBigInteger
solution), but hadn't thought about specificreplace
s. Nice!
– Olivier Grégoire
21 hours ago
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string likev->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing withBigInteger
.
– Holger
20 hours ago
1
As a side note, even Base64 does not pay off due to the additional surrounding code:v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
|
show 1 more comment
up vote
3
down vote
Java (JDK), 273 bytes
v->"yyy,....,ny ,::::::<ny,::/^\"``.n ,::/, `y e`.n,::; |yyyy'.n,::|y\___,-.yc)n;::|yy \y '-'n;::|yyy\n;::|y _.=`\n`;:|.=` _.=`\ny'|_.=`y __\ny `\_..==`` /nyy.'.___.-'.n /yyyyy\ny('x')ny/'x'\ny "x"".replace("x","--......--").replace("y"," ")
Try it online!
How original! Thank you Java ;)
Credits
- -16 bytes thanks to Kevin Cruijssen
For a more elaborate version, please add lotsa bytes:
Java (JDK), 315 bytes
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
Try it online!
Credits
- -13 bytes thanks to Holger
1
You can save two bytes by replacing the three--......--
withx
and adding a.replace("x","--......--")
: Try it online 287 bytes.
– Kevin Cruijssen
yesterday
1
273 bytes by also replacing every two spaces with any
and adding.replace("y"," ")
as I did in my 05AB1E answer.
– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence theBigInteger
solution), but hadn't thought about specificreplace
s. Nice!
– Olivier Grégoire
21 hours ago
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string likev->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing withBigInteger
.
– Holger
20 hours ago
1
As a side note, even Base64 does not pay off due to the additional surrounding code:v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
|
show 1 more comment
up vote
3
down vote
up vote
3
down vote
Java (JDK), 273 bytes
v->"yyy,....,ny ,::::::<ny,::/^\"``.n ,::/, `y e`.n,::; |yyyy'.n,::|y\___,-.yc)n;::|yy \y '-'n;::|yyy\n;::|y _.=`\n`;:|.=` _.=`\ny'|_.=`y __\ny `\_..==`` /nyy.'.___.-'.n /yyyyy\ny('x')ny/'x'\ny "x"".replace("x","--......--").replace("y"," ")
Try it online!
How original! Thank you Java ;)
Credits
- -16 bytes thanks to Kevin Cruijssen
For a more elaborate version, please add lotsa bytes:
Java (JDK), 315 bytes
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
Try it online!
Credits
- -13 bytes thanks to Holger
Java (JDK), 273 bytes
v->"yyy,....,ny ,::::::<ny,::/^\"``.n ,::/, `y e`.n,::; |yyyy'.n,::|y\___,-.yc)n;::|yy \y '-'n;::|yyy\n;::|y _.=`\n`;:|.=` _.=`\ny'|_.=`y __\ny `\_..==`` /nyy.'.___.-'.n /yyyyy\ny('x')ny/'x'\ny "x"".replace("x","--......--").replace("y"," ")
Try it online!
How original! Thank you Java ;)
Credits
- -16 bytes thanks to Kevin Cruijssen
For a more elaborate version, please add lotsa bytes:
Java (JDK), 315 bytes
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
Try it online!
Credits
- -13 bytes thanks to Holger
edited 19 hours ago
answered yesterday
Olivier Grégoire
8,40711842
8,40711842
1
You can save two bytes by replacing the three--......--
withx
and adding a.replace("x","--......--")
: Try it online 287 bytes.
– Kevin Cruijssen
yesterday
1
273 bytes by also replacing every two spaces with any
and adding.replace("y"," ")
as I did in my 05AB1E answer.
– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence theBigInteger
solution), but hadn't thought about specificreplace
s. Nice!
– Olivier Grégoire
21 hours ago
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string likev->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing withBigInteger
.
– Holger
20 hours ago
1
As a side note, even Base64 does not pay off due to the additional surrounding code:v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
|
show 1 more comment
1
You can save two bytes by replacing the three--......--
withx
and adding a.replace("x","--......--")
: Try it online 287 bytes.
– Kevin Cruijssen
yesterday
1
273 bytes by also replacing every two spaces with any
and adding.replace("y"," ")
as I did in my 05AB1E answer.
– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence theBigInteger
solution), but hadn't thought about specificreplace
s. Nice!
– Olivier Grégoire
21 hours ago
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string likev->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing withBigInteger
.
– Holger
20 hours ago
1
As a side note, even Base64 does not pay off due to the additional surrounding code:v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
1
1
You can save two bytes by replacing the three
--......--
with x
and adding a .replace("x","--......--")
: Try it online 287 bytes.– Kevin Cruijssen
yesterday
You can save two bytes by replacing the three
--......--
with x
and adding a .replace("x","--......--")
: Try it online 287 bytes.– Kevin Cruijssen
yesterday
1
1
273 bytes by also replacing every two spaces with an
y
and adding .replace("y"," ")
as I did in my 05AB1E answer.– Kevin Cruijssen
yesterday
273 bytes by also replacing every two spaces with an
y
and adding .replace("y"," ")
as I did in my 05AB1E answer.– Kevin Cruijssen
yesterday
Thank you @KevinCruijssen ! I tried to compress the string (hence the
BigInteger
solution), but hadn't thought about specific replace
s. Nice!– Olivier Grégoire
21 hours ago
Thank you @KevinCruijssen ! I tried to compress the string (hence the
BigInteger
solution), but hadn't thought about specific replace
s. Nice!– Olivier Grégoire
21 hours ago
1
1
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string like
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing with BigInteger
.– Holger
20 hours ago
The size difference between base32 and base21 does not really pay off, due to the raised decoding complexity. So just using a base21 string like
v->"BBBBBBGIIIIGABBBGKKKKKKMABBGKKJPOCRRIABGKKJGBRBBBTRIAGKKLBUBBBBBBBBDIAGKKUBBOQQQGHIBBSFALKKUBBBBBOBBBDHDALKKUBBBBBBOALKKUBBBQINROARLKUINRBQINROABBDUQINRBBBQQOABBBROQIINNRRBJABBBBIDIQQQIHDIABBBJBBBBBBBBBBOABBEDHHIIIIIIHHDFABBJDHHIIIIIIHHDOABBBCHHIIIIIIHHC".chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c-65))
is actually shorter than dealing with BigInteger
.– Holger
20 hours ago
1
1
As a side note, even Base64 does not pay off due to the additional surrounding code:
v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
As a side note, even Base64 does not pay off due to the additional surrounding code:
v->new java.math.BigInteger(java.util.Base64.getDecoder().decode("AKCHoVVu9sUqzKZt3jaAK5nEF0xsbiq6L/A29wPnSR5ZTSkb4Jp8S2L3KlRoyz4rs3VA8OyehjdCbnxM9QAe6z0pmxoSOFUa+KlDFbAho22pUn7iHayDQf+ZduXwHaf+ij3gJJ+Zc7OPVRVbwjxRy+wWnH/TbIrJeB2wi7qjTg6mXwlL8uSYpbrVT1U=")).toString(21).chars().map(c->"n "'(),-./:;<=\^_`ce|".charAt(c<64?c-48:c-87))
– Holger
19 hours ago
|
show 1 more comment
up vote
3
down vote
Brainfuck, 865 characters
Don't ask me why I did this
++++++++[>>++++>++++++>+++++++>+++++++++++++++>++++++>+++++++>++++++++++++>+++++
+++++++>++++>+[<]<-]>>++>---->++>++++>->++++>>-->>++<......[<]>>.++....--.[>]<.<
...[<]>>.>......>>>.>>>>.<..[<]>>.>..>>.>>>.--.[<]>.[>]<<<<..<<<<<++.[>]<.<.[<]>
>--.>..>>.<<<.[>]<<.<<.>>...<<+++++.-----<<<<<++.[>]<.[<]>>--.>..+.[>]<<.<<<<<.>
>>>>........[<]>+++++.>++.[>]<.[<]>>--.>-..>.>>>>>..<.+++...[<]>>.+.+.[>]<<..<<+
++.[<]>++.[>]<.[<]>>>+.-..>.>>>>>.....<---.>...[<]>--.>-.<.[>]<.[<]>>>+.-..>.>>>
>>......<.>>.[<]>>>+.-..>.>>>>>...<+++.[<]>>+.>>>>+.>---.>---.>>.<<<.<<<<+.-.>.<
<.>>>>.>.>>.<+++.[<]>>.>>>>.>.>---.>>.<..[<]>.>>>.>>>>+++.[<]>>.>>>>.>.>>...<..-
--.>>.<...<<.>.+++.[<]>>..>>>>..>..>>.<<<<.[>]<.<....[<]>>.<.>.>>>>>>...<<<<<<.-
.<.>+.[>]<.<...<<<<.>>>>.........<---.>>.<..[<]>+.-.>-..+......-..<.++.[>]<.<..<
<<<.<<<<--.>..+......-..<.[>]<<<.>>.<...[<]>-----.>..+......-..<.
with comments:
[ ,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
" 34 ' 39 ( 40 ) 41 c2
, 44 - 45 . 46 c3
: 58 ; 59 c4
| 124 c5
/ 47 c6
< 60 = 61 c7
` 96 c 99 e 101 c8
92 ^ 94 _ 95 c9
space 30 c10
linefeed 10 c11
]
+++++ +++ c0: 8 loopcell
[
>> ++++ c2 plus 4
> +++++ + c3 plus 6
> +++++ ++ c4 plus 7
> +++++ +++++ +++++ c5 plus 15
> +++++ + c6 plus 6
> +++++ ++ c7 plus 7
> +++++ +++++ ++ c8 plus 12
> +++++ +++++ ++ c9 plus 12
> ++++ c10 plus 4
> + c11 plus 8
[<]< - back to c0 and decrement
]
>> ++ c2: 34
> ---- c3: 44
> ++ c4: 58
> ++++ c5: 124
> - c6: 47
> ++++ c7: 60
> c8: 96
> -- c9: 94
> c10: 32
> ++ c11: 10
line 1
< ...... c10: 32
[<]>> . ++ .... -- . c3: 44
[>]< . newline
line 2
< ... c10 : 32
[<]>> . c3: 44
> ...... c4: 58
>>> . c7: 60
>>>> . newline
line 3
< .. c10 : 32
[<]>> . c3: 44
> .. c4: 58
>> . c6: 47
>>> . -- . c9: 92
[<]> . c2: 34
[>]<<<< .. c8: 96
<<<<< ++ . c3: 46
[>]< . newline
line 4
< . c10: 32
[<]>> -- . c3: 4
> .. c4: 58
>> . c6: 47
<<< . c3 46
[>]<< . c10: 32
<< . c8: 96
>> ... c10: 32
<< +++++ . ----- . c8: 96
<<<<< ++ . c3: 46
[>]< . newline
Line 5
[<]>> -- . c3: 44
> .. + . c4: 59
[>]<< . c10: 32
<<<<< . c5: 124
>>>>> ..... ... c10: 32
[<]> +++++ . c2: 39
> ++ . c3: 46
[>]< . newline
line 6
[<]>> -- . c3: 44
> - .. c4: 58
> . c5: 124
>>>>> .. c10: 32
< . +++ ... c9: 95
[<]>> . + . + . c3: 46
[>]<< .. c10: 32
<< +++ . c8: 99
[<]> ++ . c2: 41
[>]< . newline
Line 7
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ..... c10: 32
< --- . c9: 92
> ... c10: 32
[<]> -- . c2: 39
> - . c3: 46
< . c2: 39
[>]< . newline
Line 8
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ...... c10: 32
< . c9: 92
>> . new line
Line 9
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ... c10: 32
< +++ . c9: 95
[<]>> + . c3: 46
>>>> + . c7: 61
> --- . c8: 96
> --- . c9: 92
>> . newline
Line 10
<<< . c8: 96
<<<< + . - . c4: 58
> . c5: 124
<< . c3: 46
>>>> . c7: 61
> . c8: 96
>> . c10: 32
< +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
> --- . c9: 92
>> . newline
Line 11
< .. c10: 32
[<]> . c2: 39
>>> . c5: 124
>>>> +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
>> ... c10: 32
< .. --- . c9: 92
>> . newline
Line 12
< ... c10: 32
<< . c8: 96
> . +++ . c9: 95
[<]>> .. c3: 46
>>>> .. c7: 61
> .. c8: 96
>> . c10: 32
<<<< . c6: 47
[>]< . newline
Line 13
< .... c10: 32
[<]>> . c3: 46
< . c2: 39
> . c3: 46
>>>>> > ... c9: 95
<<<<< < . - . c3: 45
< . c2: 39
> + . c3: 46
[>]< . newline
Line 14
< ... c10: 32
<<<< . c6: 47
>>>> ..... ..... c10: 32
< --- . c9: 92
>> . newline
Line 15
< .. c10: 32
[<]> + . - . c2: 39
> - .. + ..... . - .. c3: 45
< . ++ . c2: 41
[>]< . newline
Line 16
< .. c10: 32
<<<< . c6: 47
<<<< -- . c2: 39
> .. + ..... . - .. c3: 45
< . c2: 39
[>]<<< . c9: 92
>> . newline
Line 17
< ... c10: 32
[<]> ----- . c2: 34
> .. + ..... . - .. c3: 45
< . newline
Try it online
New contributor
add a comment |
up vote
3
down vote
Brainfuck, 865 characters
Don't ask me why I did this
++++++++[>>++++>++++++>+++++++>+++++++++++++++>++++++>+++++++>++++++++++++>+++++
+++++++>++++>+[<]<-]>>++>---->++>++++>->++++>>-->>++<......[<]>>.++....--.[>]<.<
...[<]>>.>......>>>.>>>>.<..[<]>>.>..>>.>>>.--.[<]>.[>]<<<<..<<<<<++.[>]<.<.[<]>
>--.>..>>.<<<.[>]<<.<<.>>...<<+++++.-----<<<<<++.[>]<.[<]>>--.>..+.[>]<<.<<<<<.>
>>>>........[<]>+++++.>++.[>]<.[<]>>--.>-..>.>>>>>..<.+++...[<]>>.+.+.[>]<<..<<+
++.[<]>++.[>]<.[<]>>>+.-..>.>>>>>.....<---.>...[<]>--.>-.<.[>]<.[<]>>>+.-..>.>>>
>>......<.>>.[<]>>>+.-..>.>>>>>...<+++.[<]>>+.>>>>+.>---.>---.>>.<<<.<<<<+.-.>.<
<.>>>>.>.>>.<+++.[<]>>.>>>>.>.>---.>>.<..[<]>.>>>.>>>>+++.[<]>>.>>>>.>.>>...<..-
--.>>.<...<<.>.+++.[<]>>..>>>>..>..>>.<<<<.[>]<.<....[<]>>.<.>.>>>>>>...<<<<<<.-
.<.>+.[>]<.<...<<<<.>>>>.........<---.>>.<..[<]>+.-.>-..+......-..<.++.[>]<.<..<
<<<.<<<<--.>..+......-..<.[>]<<<.>>.<...[<]>-----.>..+......-..<.
with comments:
[ ,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
" 34 ' 39 ( 40 ) 41 c2
, 44 - 45 . 46 c3
: 58 ; 59 c4
| 124 c5
/ 47 c6
< 60 = 61 c7
` 96 c 99 e 101 c8
92 ^ 94 _ 95 c9
space 30 c10
linefeed 10 c11
]
+++++ +++ c0: 8 loopcell
[
>> ++++ c2 plus 4
> +++++ + c3 plus 6
> +++++ ++ c4 plus 7
> +++++ +++++ +++++ c5 plus 15
> +++++ + c6 plus 6
> +++++ ++ c7 plus 7
> +++++ +++++ ++ c8 plus 12
> +++++ +++++ ++ c9 plus 12
> ++++ c10 plus 4
> + c11 plus 8
[<]< - back to c0 and decrement
]
>> ++ c2: 34
> ---- c3: 44
> ++ c4: 58
> ++++ c5: 124
> - c6: 47
> ++++ c7: 60
> c8: 96
> -- c9: 94
> c10: 32
> ++ c11: 10
line 1
< ...... c10: 32
[<]>> . ++ .... -- . c3: 44
[>]< . newline
line 2
< ... c10 : 32
[<]>> . c3: 44
> ...... c4: 58
>>> . c7: 60
>>>> . newline
line 3
< .. c10 : 32
[<]>> . c3: 44
> .. c4: 58
>> . c6: 47
>>> . -- . c9: 92
[<]> . c2: 34
[>]<<<< .. c8: 96
<<<<< ++ . c3: 46
[>]< . newline
line 4
< . c10: 32
[<]>> -- . c3: 4
> .. c4: 58
>> . c6: 47
<<< . c3 46
[>]<< . c10: 32
<< . c8: 96
>> ... c10: 32
<< +++++ . ----- . c8: 96
<<<<< ++ . c3: 46
[>]< . newline
Line 5
[<]>> -- . c3: 44
> .. + . c4: 59
[>]<< . c10: 32
<<<<< . c5: 124
>>>>> ..... ... c10: 32
[<]> +++++ . c2: 39
> ++ . c3: 46
[>]< . newline
line 6
[<]>> -- . c3: 44
> - .. c4: 58
> . c5: 124
>>>>> .. c10: 32
< . +++ ... c9: 95
[<]>> . + . + . c3: 46
[>]<< .. c10: 32
<< +++ . c8: 99
[<]> ++ . c2: 41
[>]< . newline
Line 7
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ..... c10: 32
< --- . c9: 92
> ... c10: 32
[<]> -- . c2: 39
> - . c3: 46
< . c2: 39
[>]< . newline
Line 8
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ...... c10: 32
< . c9: 92
>> . new line
Line 9
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ... c10: 32
< +++ . c9: 95
[<]>> + . c3: 46
>>>> + . c7: 61
> --- . c8: 96
> --- . c9: 92
>> . newline
Line 10
<<< . c8: 96
<<<< + . - . c4: 58
> . c5: 124
<< . c3: 46
>>>> . c7: 61
> . c8: 96
>> . c10: 32
< +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
> --- . c9: 92
>> . newline
Line 11
< .. c10: 32
[<]> . c2: 39
>>> . c5: 124
>>>> +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
>> ... c10: 32
< .. --- . c9: 92
>> . newline
Line 12
< ... c10: 32
<< . c8: 96
> . +++ . c9: 95
[<]>> .. c3: 46
>>>> .. c7: 61
> .. c8: 96
>> . c10: 32
<<<< . c6: 47
[>]< . newline
Line 13
< .... c10: 32
[<]>> . c3: 46
< . c2: 39
> . c3: 46
>>>>> > ... c9: 95
<<<<< < . - . c3: 45
< . c2: 39
> + . c3: 46
[>]< . newline
Line 14
< ... c10: 32
<<<< . c6: 47
>>>> ..... ..... c10: 32
< --- . c9: 92
>> . newline
Line 15
< .. c10: 32
[<]> + . - . c2: 39
> - .. + ..... . - .. c3: 45
< . ++ . c2: 41
[>]< . newline
Line 16
< .. c10: 32
<<<< . c6: 47
<<<< -- . c2: 39
> .. + ..... . - .. c3: 45
< . c2: 39
[>]<<< . c9: 92
>> . newline
Line 17
< ... c10: 32
[<]> ----- . c2: 34
> .. + ..... . - .. c3: 45
< . newline
Try it online
New contributor
add a comment |
up vote
3
down vote
up vote
3
down vote
Brainfuck, 865 characters
Don't ask me why I did this
++++++++[>>++++>++++++>+++++++>+++++++++++++++>++++++>+++++++>++++++++++++>+++++
+++++++>++++>+[<]<-]>>++>---->++>++++>->++++>>-->>++<......[<]>>.++....--.[>]<.<
...[<]>>.>......>>>.>>>>.<..[<]>>.>..>>.>>>.--.[<]>.[>]<<<<..<<<<<++.[>]<.<.[<]>
>--.>..>>.<<<.[>]<<.<<.>>...<<+++++.-----<<<<<++.[>]<.[<]>>--.>..+.[>]<<.<<<<<.>
>>>>........[<]>+++++.>++.[>]<.[<]>>--.>-..>.>>>>>..<.+++...[<]>>.+.+.[>]<<..<<+
++.[<]>++.[>]<.[<]>>>+.-..>.>>>>>.....<---.>...[<]>--.>-.<.[>]<.[<]>>>+.-..>.>>>
>>......<.>>.[<]>>>+.-..>.>>>>>...<+++.[<]>>+.>>>>+.>---.>---.>>.<<<.<<<<+.-.>.<
<.>>>>.>.>>.<+++.[<]>>.>>>>.>.>---.>>.<..[<]>.>>>.>>>>+++.[<]>>.>>>>.>.>>...<..-
--.>>.<...<<.>.+++.[<]>>..>>>>..>..>>.<<<<.[>]<.<....[<]>>.<.>.>>>>>>...<<<<<<.-
.<.>+.[>]<.<...<<<<.>>>>.........<---.>>.<..[<]>+.-.>-..+......-..<.++.[>]<.<..<
<<<.<<<<--.>..+......-..<.[>]<<<.>>.<...[<]>-----.>..+......-..<.
with comments:
[ ,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
" 34 ' 39 ( 40 ) 41 c2
, 44 - 45 . 46 c3
: 58 ; 59 c4
| 124 c5
/ 47 c6
< 60 = 61 c7
` 96 c 99 e 101 c8
92 ^ 94 _ 95 c9
space 30 c10
linefeed 10 c11
]
+++++ +++ c0: 8 loopcell
[
>> ++++ c2 plus 4
> +++++ + c3 plus 6
> +++++ ++ c4 plus 7
> +++++ +++++ +++++ c5 plus 15
> +++++ + c6 plus 6
> +++++ ++ c7 plus 7
> +++++ +++++ ++ c8 plus 12
> +++++ +++++ ++ c9 plus 12
> ++++ c10 plus 4
> + c11 plus 8
[<]< - back to c0 and decrement
]
>> ++ c2: 34
> ---- c3: 44
> ++ c4: 58
> ++++ c5: 124
> - c6: 47
> ++++ c7: 60
> c8: 96
> -- c9: 94
> c10: 32
> ++ c11: 10
line 1
< ...... c10: 32
[<]>> . ++ .... -- . c3: 44
[>]< . newline
line 2
< ... c10 : 32
[<]>> . c3: 44
> ...... c4: 58
>>> . c7: 60
>>>> . newline
line 3
< .. c10 : 32
[<]>> . c3: 44
> .. c4: 58
>> . c6: 47
>>> . -- . c9: 92
[<]> . c2: 34
[>]<<<< .. c8: 96
<<<<< ++ . c3: 46
[>]< . newline
line 4
< . c10: 32
[<]>> -- . c3: 4
> .. c4: 58
>> . c6: 47
<<< . c3 46
[>]<< . c10: 32
<< . c8: 96
>> ... c10: 32
<< +++++ . ----- . c8: 96
<<<<< ++ . c3: 46
[>]< . newline
Line 5
[<]>> -- . c3: 44
> .. + . c4: 59
[>]<< . c10: 32
<<<<< . c5: 124
>>>>> ..... ... c10: 32
[<]> +++++ . c2: 39
> ++ . c3: 46
[>]< . newline
line 6
[<]>> -- . c3: 44
> - .. c4: 58
> . c5: 124
>>>>> .. c10: 32
< . +++ ... c9: 95
[<]>> . + . + . c3: 46
[>]<< .. c10: 32
<< +++ . c8: 99
[<]> ++ . c2: 41
[>]< . newline
Line 7
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ..... c10: 32
< --- . c9: 92
> ... c10: 32
[<]> -- . c2: 39
> - . c3: 46
< . c2: 39
[>]< . newline
Line 8
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ...... c10: 32
< . c9: 92
>> . new line
Line 9
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ... c10: 32
< +++ . c9: 95
[<]>> + . c3: 46
>>>> + . c7: 61
> --- . c8: 96
> --- . c9: 92
>> . newline
Line 10
<<< . c8: 96
<<<< + . - . c4: 58
> . c5: 124
<< . c3: 46
>>>> . c7: 61
> . c8: 96
>> . c10: 32
< +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
> --- . c9: 92
>> . newline
Line 11
< .. c10: 32
[<]> . c2: 39
>>> . c5: 124
>>>> +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
>> ... c10: 32
< .. --- . c9: 92
>> . newline
Line 12
< ... c10: 32
<< . c8: 96
> . +++ . c9: 95
[<]>> .. c3: 46
>>>> .. c7: 61
> .. c8: 96
>> . c10: 32
<<<< . c6: 47
[>]< . newline
Line 13
< .... c10: 32
[<]>> . c3: 46
< . c2: 39
> . c3: 46
>>>>> > ... c9: 95
<<<<< < . - . c3: 45
< . c2: 39
> + . c3: 46
[>]< . newline
Line 14
< ... c10: 32
<<<< . c6: 47
>>>> ..... ..... c10: 32
< --- . c9: 92
>> . newline
Line 15
< .. c10: 32
[<]> + . - . c2: 39
> - .. + ..... . - .. c3: 45
< . ++ . c2: 41
[>]< . newline
Line 16
< .. c10: 32
<<<< . c6: 47
<<<< -- . c2: 39
> .. + ..... . - .. c3: 45
< . c2: 39
[>]<<< . c9: 92
>> . newline
Line 17
< ... c10: 32
[<]> ----- . c2: 34
> .. + ..... . - .. c3: 45
< . newline
Try it online
New contributor
Brainfuck, 865 characters
Don't ask me why I did this
++++++++[>>++++>++++++>+++++++>+++++++++++++++>++++++>+++++++>++++++++++++>+++++
+++++++>++++>+[<]<-]>>++>---->++>++++>->++++>>-->>++<......[<]>>.++....--.[>]<.<
...[<]>>.>......>>>.>>>>.<..[<]>>.>..>>.>>>.--.[<]>.[>]<<<<..<<<<<++.[>]<.<.[<]>
>--.>..>>.<<<.[>]<<.<<.>>...<<+++++.-----<<<<<++.[>]<.[<]>>--.>..+.[>]<<.<<<<<.>
>>>>........[<]>+++++.>++.[>]<.[<]>>--.>-..>.>>>>>..<.+++...[<]>>.+.+.[>]<<..<<+
++.[<]>++.[>]<.[<]>>>+.-..>.>>>>>.....<---.>...[<]>--.>-.<.[>]<.[<]>>>+.-..>.>>>
>>......<.>>.[<]>>>+.-..>.>>>>>...<+++.[<]>>+.>>>>+.>---.>---.>>.<<<.<<<<+.-.>.<
<.>>>>.>.>>.<+++.[<]>>.>>>>.>.>---.>>.<..[<]>.>>>.>>>>+++.[<]>>.>>>>.>.>>...<..-
--.>>.<...<<.>.+++.[<]>>..>>>>..>..>>.<<<<.[>]<.<....[<]>>.<.>.>>>>>>...<<<<<<.-
.<.>+.[>]<.<...<<<<.>>>>.........<---.>>.<..[<]>+.-.>-..+......-..<.++.[>]<.<..<
<<<.<<<<--.>..+......-..<.[>]<<<.>>.<...[<]>-----.>..+......-..<.
with comments:
[ ,....,
,::::::<
,::/^"``.
,::/, ` e`.
,::; | '.
,::| ___,-. c)
;::| '-'
;::|
;::| _.=`
`;:|.=` _.=`
'|_.=` __
`_..==`` /
.'.___.-'.
/
('--......--')
/'--......--'
"--......--"
" 34 ' 39 ( 40 ) 41 c2
, 44 - 45 . 46 c3
: 58 ; 59 c4
| 124 c5
/ 47 c6
< 60 = 61 c7
` 96 c 99 e 101 c8
92 ^ 94 _ 95 c9
space 30 c10
linefeed 10 c11
]
+++++ +++ c0: 8 loopcell
[
>> ++++ c2 plus 4
> +++++ + c3 plus 6
> +++++ ++ c4 plus 7
> +++++ +++++ +++++ c5 plus 15
> +++++ + c6 plus 6
> +++++ ++ c7 plus 7
> +++++ +++++ ++ c8 plus 12
> +++++ +++++ ++ c9 plus 12
> ++++ c10 plus 4
> + c11 plus 8
[<]< - back to c0 and decrement
]
>> ++ c2: 34
> ---- c3: 44
> ++ c4: 58
> ++++ c5: 124
> - c6: 47
> ++++ c7: 60
> c8: 96
> -- c9: 94
> c10: 32
> ++ c11: 10
line 1
< ...... c10: 32
[<]>> . ++ .... -- . c3: 44
[>]< . newline
line 2
< ... c10 : 32
[<]>> . c3: 44
> ...... c4: 58
>>> . c7: 60
>>>> . newline
line 3
< .. c10 : 32
[<]>> . c3: 44
> .. c4: 58
>> . c6: 47
>>> . -- . c9: 92
[<]> . c2: 34
[>]<<<< .. c8: 96
<<<<< ++ . c3: 46
[>]< . newline
line 4
< . c10: 32
[<]>> -- . c3: 4
> .. c4: 58
>> . c6: 47
<<< . c3 46
[>]<< . c10: 32
<< . c8: 96
>> ... c10: 32
<< +++++ . ----- . c8: 96
<<<<< ++ . c3: 46
[>]< . newline
Line 5
[<]>> -- . c3: 44
> .. + . c4: 59
[>]<< . c10: 32
<<<<< . c5: 124
>>>>> ..... ... c10: 32
[<]> +++++ . c2: 39
> ++ . c3: 46
[>]< . newline
line 6
[<]>> -- . c3: 44
> - .. c4: 58
> . c5: 124
>>>>> .. c10: 32
< . +++ ... c9: 95
[<]>> . + . + . c3: 46
[>]<< .. c10: 32
<< +++ . c8: 99
[<]> ++ . c2: 41
[>]< . newline
Line 7
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ..... c10: 32
< --- . c9: 92
> ... c10: 32
[<]> -- . c2: 39
> - . c3: 46
< . c2: 39
[>]< . newline
Line 8
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ...... c10: 32
< . c9: 92
>> . new line
Line 9
[<]>>> + . - .. c4: 58
> . c5: 124
>>>>> ... c10: 32
< +++ . c9: 95
[<]>> + . c3: 46
>>>> + . c7: 61
> --- . c8: 96
> --- . c9: 92
>> . newline
Line 10
<<< . c8: 96
<<<< + . - . c4: 58
> . c5: 124
<< . c3: 46
>>>> . c7: 61
> . c8: 96
>> . c10: 32
< +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
> --- . c9: 92
>> . newline
Line 11
< .. c10: 32
[<]> . c2: 39
>>> . c5: 124
>>>> +++ . c9: 95
[<]>> . c3: 46
>>>> . c7: 61
> . c8: 96
>> ... c10: 32
< .. --- . c9: 92
>> . newline
Line 12
< ... c10: 32
<< . c8: 96
> . +++ . c9: 95
[<]>> .. c3: 46
>>>> .. c7: 61
> .. c8: 96
>> . c10: 32
<<<< . c6: 47
[>]< . newline
Line 13
< .... c10: 32
[<]>> . c3: 46
< . c2: 39
> . c3: 46
>>>>> > ... c9: 95
<<<<< < . - . c3: 45
< . c2: 39
> + . c3: 46
[>]< . newline
Line 14
< ... c10: 32
<<<< . c6: 47
>>>> ..... ..... c10: 32
< --- . c9: 92
>> . newline
Line 15
< .. c10: 32
[<]> + . - . c2: 39
> - .. + ..... . - .. c3: 45
< . ++ . c2: 41
[>]< . newline
Line 16
< .. c10: 32
<<<< . c6: 47
<<<< -- . c2: 39
> .. + ..... . - .. c3: 45
< . c2: 39
[>]<<< . c9: 92
>> . newline
Line 17
< ... c10: 32
[<]> ----- . c2: 34
> .. + ..... . - .. c3: 45
< . newline
Try it online
New contributor
edited 2 hours ago
New contributor
answered 2 hours ago
James Gill
314
314
New contributor
New contributor
add a comment |
add a comment |
up vote
2
down vote
Canvas, 131 129 128 bytes
r}{rfcx↖o0w}tf‽«≥⇵‾u┴Rnp,t≠8↓ab╬∑⁹/9h.→b◂LDp;Cxq$Ps~*@i6bWt╪L#We↘²l%qJ⁰a|2]?¼-┘╫rlM⁹&O¾×{Y?-)╵Z⁴;⇵Z¼e`i‼ø‟⁶∑[A┼X╋╋3g↑B/J:◂ŗ"‟║∔
Try it here!
Compression, plus palindromizing the bottom 4 lines
add a comment |
up vote
2
down vote
Canvas, 131 129 128 bytes
r}{rfcx↖o0w}tf‽«≥⇵‾u┴Rnp,t≠8↓ab╬∑⁹/9h.→b◂LDp;Cxq$Ps~*@i6bWt╪L#We↘²l%qJ⁰a|2]?¼-┘╫rlM⁹&O¾×{Y?-)╵Z⁴;⇵Z¼e`i‼ø‟⁶∑[A┼X╋╋3g↑B/J:◂ŗ"‟║∔
Try it here!
Compression, plus palindromizing the bottom 4 lines
add a comment |
up vote
2
down vote
up vote
2
down vote
Canvas, 131 129 128 bytes
r}{rfcx↖o0w}tf‽«≥⇵‾u┴Rnp,t≠8↓ab╬∑⁹/9h.→b◂LDp;Cxq$Ps~*@i6bWt╪L#We↘²l%qJ⁰a|2]?¼-┘╫rlM⁹&O¾×{Y?-)╵Z⁴;⇵Z¼e`i‼ø‟⁶∑[A┼X╋╋3g↑B/J:◂ŗ"‟║∔
Try it here!
Compression, plus palindromizing the bottom 4 lines
Canvas, 131 129 128 bytes
r}{rfcx↖o0w}tf‽«≥⇵‾u┴Rnp,t≠8↓ab╬∑⁹/9h.→b◂LDp;Cxq$Ps~*@i6bWt╪L#We↘²l%qJ⁰a|2]?¼-┘╫rlM⁹&O¾×{Y?-)╵Z⁴;⇵Z¼e`i‼ø‟⁶∑[A┼X╋╋3g↑B/J:◂ŗ"‟║∔
Try it here!
Compression, plus palindromizing the bottom 4 lines
edited yesterday
answered yesterday
dzaima
14.2k21754
14.2k21754
add a comment |
add a comment |
up vote
2
down vote
Jelly, 157 bytes
“<ẏʂɦDçḢñ×%Ḟj ṗẹẠ⁸%§⁵ġTÞj}eĿƬ0lḳ)þaṛƭÆƇỴɱ)rȦẋ}=ėMȮDḂıçEYĠⱮȮɗ%ẈẒṭÆ5§aɓNỤ⁹=ZÐḃ⁶ṣṭṂe÷ɲẎḤøƈƓuⱮfl’ṃ“ ,.¶:!/`;|'_-=”Ḥ“¦]Ẓ$øSṫ)⁼⁻ḊAḣɠ5ƤVĊ_⁺œAʋ½’BT¤¦ṣ”!ż“<^"ec)()""
A full-program printing the art.
Try it online!
How?
Almost certainly not optimal
“...’ṃ“ ,.¶:!/`;|'_-=”Ḥ“...’BT¤¦ṣ”!ż“<^"ec)()"" - Main Link: no arguments
“...’ - base 250 integer = 40456038316861238392937374894157290550238585275386707138893559485980776818421971180905923819853990224605051183032957226663498407152675710453520748595760648781544778088699103552320167328800583390864726325837494040650859
“ ,.¶:!/`;|'_-=” - list of characters " ,.¶:!/`;|'_-="
- Note: ¶ is really a newline character
ṃ - decompress (use the 15 chars as base 15 digits)
¦ - sparse application...
- ...to indices:
¤ - nilad followed by link(s) as a nilad:
“...’ - base 250 integer = 90651644424142209479178402838382929265611178277832292511
B - to binary = 111011001001110010100001000010000100000010001111000010101000010000101100100000010111000101000000000000000000000100000010100100001110001100010000001001111100100111110001001111100010011111
T - truthy indices = [1,2,3,5,6,9,12,13,14,17,19,24,29,34,41,45,46,47,48,53,55,57,62,67,69,70,73,80,82,83,84,88,90,112,119,121,124,129,130,131,135,136,140,147,150,151,152,153,154,157,160,161,162,163,164,168,171,172,173,174,175,179,182,183,184,185,186]
- ...action:
Ḥ - double (e.g. 'x' -> 'xx')
ṣ - split at:
”! - literal '!' character
ż - zip with:
“<^"ec)()"" - list of characters '<^"ec)()""'
- (implicit closing ”)
- implicit, smashing print
add a comment |
up vote
2
down vote
Jelly, 157 bytes
“<ẏʂɦDçḢñ×%Ḟj ṗẹẠ⁸%§⁵ġTÞj}eĿƬ0lḳ)þaṛƭÆƇỴɱ)rȦẋ}=ėMȮDḂıçEYĠⱮȮɗ%ẈẒṭÆ5§aɓNỤ⁹=ZÐḃ⁶ṣṭṂe÷ɲẎḤøƈƓuⱮfl’ṃ“ ,.¶:!/`;|'_-=”Ḥ“¦]Ẓ$øSṫ)⁼⁻ḊAḣɠ5ƤVĊ_⁺œAʋ½’BT¤¦ṣ”!ż“<^"ec)()""
A full-program printing the art.
Try it online!
How?
Almost certainly not optimal
“...’ṃ“ ,.¶:!/`;|'_-=”Ḥ“...’BT¤¦ṣ”!ż“<^"ec)()"" - Main Link: no arguments
“...’ - base 250 integer = 40456038316861238392937374894157290550238585275386707138893559485980776818421971180905923819853990224605051183032957226663498407152675710453520748595760648781544778088699103552320167328800583390864726325837494040650859
“ ,.¶:!/`;|'_-=” - list of characters " ,.¶:!/`;|'_-="
- Note: ¶ is really a newline character
ṃ - decompress (use the 15 chars as base 15 digits)
¦ - sparse application...
- ...to indices:
¤ - nilad followed by link(s) as a nilad:
“...’ - base 250 integer = 90651644424142209479178402838382929265611178277832292511
B - to binary = 111011001001110010100001000010000100000010001111000010101000010000101100100000010111000101000000000000000000000100000010100100001110001100010000001001111100100111110001001111100010011111
T - truthy indices = [1,2,3,5,6,9,12,13,14,17,19,24,29,34,41,45,46,47,48,53,55,57,62,67,69,70,73,80,82,83,84,88,90,112,119,121,124,129,130,131,135,136,140,147,150,151,152,153,154,157,160,161,162,163,164,168,171,172,173,174,175,179,182,183,184,185,186]
- ...action:
Ḥ - double (e.g. 'x' -> 'xx')
ṣ - split at:
”! - literal '!' character
ż - zip with:
“<^"ec)()"" - list of characters '<^"ec)()""'
- (implicit closing ”)
- implicit, smashing print
add a comment |
up vote
2
down vote
up vote
2
down vote
Jelly, 157 bytes
“<ẏʂɦDçḢñ×%Ḟj ṗẹẠ⁸%§⁵ġTÞj}eĿƬ0lḳ)þaṛƭÆƇỴɱ)rȦẋ}=ėMȮDḂıçEYĠⱮȮɗ%ẈẒṭÆ5§aɓNỤ⁹=ZÐḃ⁶ṣṭṂe÷ɲẎḤøƈƓuⱮfl’ṃ“ ,.¶:!/`;|'_-=”Ḥ“¦]Ẓ$øSṫ)⁼⁻ḊAḣɠ5ƤVĊ_⁺œAʋ½’BT¤¦ṣ”!ż“<^"ec)()""
A full-program printing the art.
Try it online!
How?
Almost certainly not optimal
“...’ṃ“ ,.¶:!/`;|'_-=”Ḥ“...’BT¤¦ṣ”!ż“<^"ec)()"" - Main Link: no arguments
“...’ - base 250 integer = 40456038316861238392937374894157290550238585275386707138893559485980776818421971180905923819853990224605051183032957226663498407152675710453520748595760648781544778088699103552320167328800583390864726325837494040650859
“ ,.¶:!/`;|'_-=” - list of characters " ,.¶:!/`;|'_-="
- Note: ¶ is really a newline character
ṃ - decompress (use the 15 chars as base 15 digits)
¦ - sparse application...
- ...to indices:
¤ - nilad followed by link(s) as a nilad:
“...’ - base 250 integer = 90651644424142209479178402838382929265611178277832292511
B - to binary = 111011001001110010100001000010000100000010001111000010101000010000101100100000010111000101000000000000000000000100000010100100001110001100010000001001111100100111110001001111100010011111
T - truthy indices = [1,2,3,5,6,9,12,13,14,17,19,24,29,34,41,45,46,47,48,53,55,57,62,67,69,70,73,80,82,83,84,88,90,112,119,121,124,129,130,131,135,136,140,147,150,151,152,153,154,157,160,161,162,163,164,168,171,172,173,174,175,179,182,183,184,185,186]
- ...action:
Ḥ - double (e.g. 'x' -> 'xx')
ṣ - split at:
”! - literal '!' character
ż - zip with:
“<^"ec)()"" - list of characters '<^"ec)()""'
- (implicit closing ”)
- implicit, smashing print
Jelly, 157 bytes
“<ẏʂɦDçḢñ×%Ḟj ṗẹẠ⁸%§⁵ġTÞj}eĿƬ0lḳ)þaṛƭÆƇỴɱ)rȦẋ}=ėMȮDḂıçEYĠⱮȮɗ%ẈẒṭÆ5§aɓNỤ⁹=ZÐḃ⁶ṣṭṂe÷ɲẎḤøƈƓuⱮfl’ṃ“ ,.¶:!/`;|'_-=”Ḥ“¦]Ẓ$øSṫ)⁼⁻ḊAḣɠ5ƤVĊ_⁺œAʋ½’BT¤¦ṣ”!ż“<^"ec)()""
A full-program printing the art.
Try it online!
How?
Almost certainly not optimal
“...’ṃ“ ,.¶:!/`;|'_-=”Ḥ“...’BT¤¦ṣ”!ż“<^"ec)()"" - Main Link: no arguments
“...’ - base 250 integer = 40456038316861238392937374894157290550238585275386707138893559485980776818421971180905923819853990224605051183032957226663498407152675710453520748595760648781544778088699103552320167328800583390864726325837494040650859
“ ,.¶:!/`;|'_-=” - list of characters " ,.¶:!/`;|'_-="
- Note: ¶ is really a newline character
ṃ - decompress (use the 15 chars as base 15 digits)
¦ - sparse application...
- ...to indices:
¤ - nilad followed by link(s) as a nilad:
“...’ - base 250 integer = 90651644424142209479178402838382929265611178277832292511
B - to binary = 111011001001110010100001000010000100000010001111000010101000010000101100100000010111000101000000000000000000000100000010100100001110001100010000001001111100100111110001001111100010011111
T - truthy indices = [1,2,3,5,6,9,12,13,14,17,19,24,29,34,41,45,46,47,48,53,55,57,62,67,69,70,73,80,82,83,84,88,90,112,119,121,124,129,130,131,135,136,140,147,150,151,152,153,154,157,160,161,162,163,164,168,171,172,173,174,175,179,182,183,184,185,186]
- ...action:
Ḥ - double (e.g. 'x' -> 'xx')
ṣ - split at:
”! - literal '!' character
ż - zip with:
“<^"ec)()"" - list of characters '<^"ec)()""'
- (implicit closing ”)
- implicit, smashing print
edited yesterday
answered yesterday
Jonathan Allan
50.3k534165
50.3k534165
add a comment |
add a comment |
up vote
1
down vote
Charcoal, 138 bytes
”}∧αP3|%g↥⪪⁻↘gMGu↘◧(⟲₂≧⟦⁵I↑λ‽"d⌈Z↗Xκ›⍘‽▷xλ:C³↶⎇³Þê¡)QO=IT¡G▶gT~№vEK→VpZx﹪η↥2⁷Oa↙8 ⁷¹↘‽…E±ι·Cυ‴⁻▶~⧴EY⸿↓⊗⊘.⭆ⅉW";‖qNP¬⁺_↙- M÷Opbνω?,#JQΣ8~⪫↥W
Try it online! Link is to verbose version of code... well, it's a single Print statement, as this is just a single compressed string; I tried reflecting the base but that cost 6 bytes.
add a comment |
up vote
1
down vote
Charcoal, 138 bytes
”}∧αP3|%g↥⪪⁻↘gMGu↘◧(⟲₂≧⟦⁵I↑λ‽"d⌈Z↗Xκ›⍘‽▷xλ:C³↶⎇³Þê¡)QO=IT¡G▶gT~№vEK→VpZx﹪η↥2⁷Oa↙8 ⁷¹↘‽…E±ι·Cυ‴⁻▶~⧴EY⸿↓⊗⊘.⭆ⅉW";‖qNP¬⁺_↙- M÷Opbνω?,#JQΣ8~⪫↥W
Try it online! Link is to verbose version of code... well, it's a single Print statement, as this is just a single compressed string; I tried reflecting the base but that cost 6 bytes.
add a comment |
up vote
1
down vote
up vote
1
down vote
Charcoal, 138 bytes
”}∧αP3|%g↥⪪⁻↘gMGu↘◧(⟲₂≧⟦⁵I↑λ‽"d⌈Z↗Xκ›⍘‽▷xλ:C³↶⎇³Þê¡)QO=IT¡G▶gT~№vEK→VpZx﹪η↥2⁷Oa↙8 ⁷¹↘‽…E±ι·Cυ‴⁻▶~⧴EY⸿↓⊗⊘.⭆ⅉW";‖qNP¬⁺_↙- M÷Opbνω?,#JQΣ8~⪫↥W
Try it online! Link is to verbose version of code... well, it's a single Print statement, as this is just a single compressed string; I tried reflecting the base but that cost 6 bytes.
Charcoal, 138 bytes
”}∧αP3|%g↥⪪⁻↘gMGu↘◧(⟲₂≧⟦⁵I↑λ‽"d⌈Z↗Xκ›⍘‽▷xλ:C³↶⎇³Þê¡)QO=IT¡G▶gT~№vEK→VpZx﹪η↥2⁷Oa↙8 ⁷¹↘‽…E±ι·Cυ‴⁻▶~⧴EY⸿↓⊗⊘.⭆ⅉW";‖qNP¬⁺_↙- M÷Opbνω?,#JQΣ8~⪫↥W
Try it online! Link is to verbose version of code... well, it's a single Print statement, as this is just a single compressed string; I tried reflecting the base but that cost 6 bytes.
answered yesterday
Neil
78.5k744175
78.5k744175
add a comment |
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f176988%2fchess-ascii-art-knight%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Since this is kolmogorov-complexity, are we disallowed from outputting with leading/trailing whitespace? i.e., print the exact text shown above?
– Giuseppe
yesterday
10
What does this ascii-art + kolmogorov-complexity question add that is not present in the dozens of other challenges with this combination?
– Post Left Garf Hunter
yesterday
I see different transformations that can be applied to the bottom. Is that present in the dozens of other ascii-art + kolmogrov-complexity?
– Zacharý
yesterday
(Bottom four lines, and the repetition of the diagonal
.=`_.=`
, to clarify my above post)– Zacharý
yesterday
19
Attribution should be given to the artist, Joan G. Stark. (really the
jgs
should be left in the art too, as requested by Joan on her original website) [-- also it's missing backticks from bottom row]– Jonathan Allan
yesterday