Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges Towering Cistercian Representation

JavaScript (Node.js), 606 bytes for(_="=>\\\\ =j(...(a:').join`\\n`[q](/aa),/ / / d[c[___) .match(/.{.||]/g,=='.mapf=(n,m=([a,b]a?m(b)+a',l=10000n,j=, b,c=0a-c?[b(cj,b,c+1)]:[],b=[q='rep...

posted 4y ago by Hakerh400‭  ·  edited 4y ago by Hakerh400‭

Answer
#2: Post edited by user avatar Hakerh400‭ · 2020-12-14T08:31:20Z (about 4 years ago)
  • # [JavaScript (Node.js)], 606 bytes
  • <!-- language-all: lang-javascript -->
  • <pre><code>for(_="=&gt;&#24;\\\\&#23; &#22; &#23;&#22;&#21;=j(&#20;...&#19;(a&#18;:'&#17;).join`&#16;&#16;\\n`&#15;[q](/&#14;a&#24;a&#12;),&#11;/ / /&#22;&#9;d[c[&#8;___&#7;)&#24;&#6;&#22;&#22;&#22;&#22;&#22; &#7;&#22;&#5;.match(/.{&#4;.&#22;|&#22;|&#3;]/g,&#12;=='&#2;.map&#18;&#24;&#1;f=(n,m=([a,&#19;b]&#6;a?m(b)+a&#17;',l=10000n,j=&#18;, b,c=0&#6;a-c?[b(c&#11;&#19;j&#18;,b,c+1)]:[],b=&#12;[q='replace'](/[&#23;\\/&#2;/'?'&#23;'&#17;/'&#11;r=+[n%l],c&#20;4,i&#24;r/10**i%10|0&#11;d=`&#5;&#22;&#22;&#5; &#21;&#21;&#21;&#22; &#9;&#7;&#22;&#9;&#22;&#3;&#22;'&#7;&#3;&#22;'&#22;&#3;&#7;'&#7;&#3;&#7;'`&#4;16}/g)&#1;a&#4;4}/g)&#11;e=&#12;&#1;b(m&#18;))&#11;g=([&#19;a]&#6;a.reverse()&#1;b&#18;)&#14;[\\.\\'&#2;.'?`'`&#17;.')&#11;h=[e(&#8;1]]&#11;&#8;0]],g(e(&#8;3]])&#11;g(&#8;2]])],k,i&#20;12,(y,g&#20;9,(x,m=y&gt;4,n=x&gt;4&#6;x-4?y&gt;3&amp;y&lt;8?' ':h[m*2|n][m?y-8:y][n?x-5:x]&#17;|'&#16;`&#6;y-4?g:k=g&#15;,o&#6;n?(o=f(n/l&#11;o?i+j(6,i&#24;i&amp;&amp;i&lt;5?k&#17;'&#15;+o&#14;(.{4})./,&#18;,b&#6;b+'|'):i)&#17;'";G=/[&#1;-&#24;]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
  • </code></pre>
  • [Try it online!][TIO-kioac2zt]
  • [JavaScript (Node.js)]: https://nodejs.org
  • [TIO-kioac2zt]: https://tio.run/##FVJtT@owGA2@DMyIOl4KHxcTbSulYziNd1qW3C/m/oau2bo5xnBsOIiyiL@dW06e5uR5yZPznHQpv@QmrrL1dlyU78nhMC8rFLAbNhv6CgPTNIE5AH22RD1KaRfJjgsNTJdlVoTX175fhFf8UyDrUg5lGxPdMs1jgIt3HvNWEARNPNTAEWYTnNOV3MYLZNGfMwr2YH8qrJS0GYMnqrPuDBtzhgqyYohL0o2EJr0VivBIGpDkzJ4oFGTJOsSMSMwmmhzHHo9QrHeXHaJKIxsLlwsSsTb/ZLBK1rmME6jk8YHvWycW9OAAGhbUKzbixW0uSNxzSDasLHtyf5/d2pP9RH9n4TkA52a/3wfmRRNcgFMAm@qB06biJgzP7KdfK8UNeeYcWU9YuxGhVQdjPVXau1Ipp1XylVSbBOFG1MGX3Pep76s7oRfC0KAQ6wvGE9SyhdBbEyFIilT2IITagVpTxYJ8kKxnTwmqSdr7Q9BOOVPPHFKw3czRdmPHq2cPd/XrswdN6C746n66LwRfefX42a0FL7zd@NHdCWMPr0OtVvOp@8HSK1JqhYdKNkeFleull42W6Em5kN3dZa@P3ocBr0blJaI/zi@mFlHWatEI7iF2M2zAm5c3ZvHGeCgsmuySGAX4BX9n2wUK6GadZ1v0hnHAjj8EbRbZfIswfkm@ZK4GD3FZbMo8oXmZojn6m6X/ii2C9vTBeYQY48N/ "JavaScript (Node.js) – Try It Online"
  • This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.
  • # [JavaScript (Node.js)], 606 bytes
  • <!-- language-all: lang-javascript -->
  • <pre><code>for(_="=&gt;&#24;\\\\&#23; &#22; &#23;&#22;&#21;=j(&#20;...&#19;(a&#18;:'&#17;).join`&#16;&#16;\\n`&#15;[q](/&#14;a&#24;a&#12;),&#11;/ / /&#22;&#9;d[c[&#8;___&#7;)&#24;&#6;&#22;&#22;&#22;&#22;&#22; &#7;&#22;&#5;.match(/.{&#4;.&#22;|&#22;|&#3;]/g,&#12;=='&#2;.map&#18;&#24;&#1;f=(n,m=([a,&#19;b]&#6;a?m(b)+a&#17;',l=10000n,j=&#18;, b,c=0&#6;a-c?[b(c&#11;&#19;j&#18;,b,c+1)]:[],b=&#12;[q='replace'](/[&#23;\\/&#2;/'?'&#23;'&#17;/'&#11;r=+[n%l],c&#20;4,i&#24;r/10**i%10|0&#11;d=`&#5;&#22;&#22;&#5; &#21;&#21;&#21;&#22; &#9;&#7;&#22;&#9;&#22;&#3;&#22;'&#7;&#3;&#22;'&#22;&#3;&#7;'&#7;&#3;&#7;'`&#4;16}/g)&#1;a&#4;4}/g)&#11;e=&#12;&#1;b(m&#18;))&#11;g=([&#19;a]&#6;a.reverse()&#1;b&#18;)&#14;[\\.\\'&#2;.'?`'`&#17;.')&#11;h=[e(&#8;1]]&#11;&#8;0]],g(e(&#8;3]])&#11;g(&#8;2]])],k,i&#20;12,(y,g&#20;9,(x,m=y&gt;4,n=x&gt;4&#6;x-4?y&gt;3&amp;y&lt;8?' ':h[m*2|n][m?y-8:y][n?x-5:x]&#17;|'&#16;`&#6;y-4?g:k=g&#15;,o&#6;n?(o=f(n/l&#11;o?i+j(6,i&#24;i&amp;&amp;i&lt;5?k&#17;'&#15;+o&#14;(.{4})./,&#18;,b&#6;b+'|'):i)&#17;'";G=/[&#1;-&#24;]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
  • </code></pre>
  • [Try it online!][TIO-kioac2zt]
  • [JavaScript (Node.js)]: https://nodejs.org
  • [TIO-kioac2zt]: https://tio.run/##JVJtb6owGI17QRfMNt/Qj2TJ1nbWIorOsVWS@2W5v6E0UBgiDsGh2ZXM/XZvvffkaU/69OTJ6UlX4ktswyLZ7AZZ/h4dj4u8gB69o/OeK9HVdV3Tu1qHrmCbENKCommDBiKrPMn821vXzfwb9smhcS16oo6wauj6qbSrdxaymud5VdRTtBP0qnZJ1mIXLqFBvi@IdtAO59yIcZ1ScCZvNs1eZUFhhtcUMoFbAVeEs4YB6osGwCk1hxIZXtEm1gMc0qEiBqHDAhiqrVUTy1bfRNxmHAe0zj4pKKJNKsIISHus67rGmQEc0AUNA6gF7bPsPuU4bFs46RWGOXx8TO7N4WGovlP/UtMu9U6no@lXVe1KO9dAVS7tvCq5CvwLc/pjxKgiLqwTqxGtVwK4biKkxtJ7S0jnpIi@omIbQVQJmuiauS5xXflO4PjAbxCA1CVlEayZnKu1Iec4hvI05lzOgLWRZI4/cNI2RxiWOG4/Y7iXyZRzC2d0P7eU/cByyvn4oXydOUAH9pKtH0eHjLO1Uw5mdslZ5uwHE3vPGwdw6yul1Mf2B41vcK5kDszpAmZGquZO0l/BqUwheXhIXifORwPc9PNrSL6tH0QMLKNVgj44AGQnqAHuXt6owSqDHjdItI9C6KEX9CfZLaFHtps02cE3hDx6@iFwu0wWO4jQS/QlUik8hnm2zdOIpHkMF/BXEv/OdhBYE8ucWJPR2JpMn2bPz6PxkzX9v83@9SRLMk8CgBA6/gU "JavaScript (Node.js) – Try It Online"
  • This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.
#1: Initial revision by user avatar Hakerh400‭ · 2020-12-14T08:29:10Z (about 4 years ago)
# [JavaScript (Node.js)], 606 bytes

<!-- language-all: lang-javascript -->

<pre><code>for(_="=&gt;&#24;\\\\&#23;   &#22; &#23;&#22;&#21;=j(&#20;...&#19;(a&#18;:'&#17;).join`&#16;&#16;\\n`&#15;[q](/&#14;a&#24;a&#12;),&#11;/  /  /&#22;&#9;d[c[&#8;___&#7;)&#24;&#6;&#22;&#22;&#22;&#22;&#22; &#7;&#22;&#5;.match(/.{&#4;.&#22;|&#22;|&#3;]/g,&#12;=='&#2;.map&#18;&#24;&#1;f=(n,m=([a,&#19;b]&#6;a?m(b)+a&#17;',l=10000n,j=&#18;, b,c=0&#6;a-c?[b(c&#11;&#19;j&#18;,b,c+1)]:[],b=&#12;[q='replace'](/[&#23;\\/&#2;/'?'&#23;'&#17;/'&#11;r=+[n%l],c&#20;4,i&#24;r/10**i%10|0&#11;d=`&#5;&#22;&#22;&#5; &#21;&#21;&#21;&#22; &#9;&#7;&#22;&#9;&#22;&#3;&#22;'&#7;&#3;&#22;'&#22;&#3;&#7;'&#7;&#3;&#7;'`&#4;16}/g)&#1;a&#4;4}/g)&#11;e=&#12;&#1;b(m&#18;))&#11;g=([&#19;a]&#6;a.reverse()&#1;b&#18;)&#14;[\\.\\'&#2;.'?`'`&#17;.')&#11;h=[e(&#8;1]]&#11;&#8;0]],g(e(&#8;3]])&#11;g(&#8;2]])],k,i&#20;12,(y,g&#20;9,(x,m=y&gt;4,n=x&gt;4&#6;x-4?y&gt;3&amp;y&lt;8?' ':h[m*2|n][m?y-8:y][n?x-5:x]&#17;|'&#16;`&#6;y-4?g:k=g&#15;,o&#6;n?(o=f(n/l&#11;o?i+j(6,i&#24;i&amp;&amp;i&lt;5?k&#17;'&#15;+o&#14;(.{4})./,&#18;,b&#6;b+'|'):i)&#17;'";G=/[&#1;-&#24;]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
</code></pre>

[Try it online!][TIO-kioac2zt]

[JavaScript (Node.js)]: https://nodejs.org
[TIO-kioac2zt]: https://tio.run/##FVJtT@owGA2@DMyIOl4KHxcTbSulYziNd1qW3C/m/oau2bo5xnBsOIiyiL@dW06e5uR5yZPznHQpv@QmrrL1dlyU78nhMC8rFLAbNhv6CgPTNIE5AH22RD1KaRfJjgsNTJdlVoTX175fhFf8UyDrUg5lGxPdMs1jgIt3HvNWEARNPNTAEWYTnNOV3MYLZNGfMwr2YH8qrJS0GYMnqrPuDBtzhgqyYohL0o2EJr0VivBIGpDkzJ4oFGTJOsSMSMwmmhzHHo9QrHeXHaJKIxsLlwsSsTb/ZLBK1rmME6jk8YHvWycW9OAAGhbUKzbixW0uSNxzSDasLHtyf5/d2pP9RH9n4TkA52a/3wfmRRNcgFMAm@qB06biJgzP7KdfK8UNeeYcWU9YuxGhVQdjPVXau1Ipp1XylVSbBOFG1MGX3Pep76s7oRfC0KAQ6wvGE9SyhdBbEyFIilT2IITagVpTxYJ8kKxnTwmqSdr7Q9BOOVPPHFKw3czRdmPHq2cPd/XrswdN6C746n66LwRfefX42a0FL7zd@NHdCWMPr0OtVvOp@8HSK1JqhYdKNkeFleull42W6Em5kN3dZa@P3ocBr0blJaI/zi@mFlHWatEI7iF2M2zAm5c3ZvHGeCgsmuySGAX4BX9n2wUK6GadZ1v0hnHAjj8EbRbZfIswfkm@ZK4GD3FZbMo8oXmZojn6m6X/ii2C9vTBeYQY48N/ "JavaScript (Node.js) – Try It Online"

This solution is longer than the [JS solution from SE](https://codegolf.stackexchange.com/a/216177), but this solution supports integers of unlimited size.