13
votes
10
votes
Scribble Pad for Nerds
Charcoal, 9 bytes
FA✳ι##‖↘#
Try it online! Link is to verbose version of code. Explanation:
FA
Loop over the directions.
...
8
votes
Scribble Pad for Nerds
Ruby, 106 bytes
->d{m=2*x=y=d.size*2;c=[]
[-5,*d].map{|k|2.times{(c[y+=k==6?0:k%7<=>2]||=[0]*m)[x+=k<1?0:4<=>k]=1}};c-[p]}
Try it online! ...
8
votes
Scribble Pad for Nerds
Jelly, 25 22 bytes
Saved three bytes using the allowance of excess whitespace (this also fixed a bug that meant an input with only left and/or right movements would have printed incorrectly since no ...
7
votes
Scribble Pad for Nerds
BQN, 79 77 71 67 58 53 51 bytes
Saved 5 bytes thanks to att
' '+(¬⊸-↑↑⟜1)∘⋈˜∘¬⟜-∘≠{𝕨(𝕨∨⌽)´-𝕩}4(⊢×○×-)2/8|-⟜2⊸⋈¨
Try it at BQN online
Explanation
New approach!
<...
6
votes
Collect data on mushroom forests
Python, 125 bytes
import re
def f(s):
o=[0]*len(s[0])
for l in s:
for m in re.finditer("=+",l):o[sum(m.span())//4]=len(m[0])//4+1
return o
Attempt This Online!
Bad, terrible, no good.
...
4
votes
Knit me an ASCII-Sock
Vyxal, 54 bytes
1.*(\v*,)½(n-\v*₴n:d+\>*,)½½ʁ(½\v*?T\>*Jnd\>*J:⅛,)¾(¼,
Boy oh boy, this is my new favorite answer now.
The satisfaction when I got it down ...
4
votes
Collect data on mushroom forests
Jelly, 23 20 16 bytes
OḂŒgÄ=U×ƊF€Sm2HĊ
Try it online!
-3 thanks to Jonathan Allan, also opening up another -1 (×=¥UFƊ€ -> <...
3
votes
Is this string a square?
Jelly, 4 bytes
Ỵ¬zƑ
Try it online!
Input via command-line argument. The input must be given with no trailing newline (otherwise the program sees a blank line at ...
Community wiki
3
votes
Collect data on mushroom forests
Retina, 39 bytes
^
¶
(=*)=\1
$1!$1
{*.\Cm`^!|\G==
m`^..
Try it online!
Explanation
^, ¶: ...
2
votes
2
votes
2
votes
Square root of ASCII art
Vyxal, 40 32 bytes
ẏṘ\\$꘍øm↵:IǏfL:£Nvȯ$Z¥?hL⇧\_*꘍p⁋
Try it Online! or verify all test cases.
-8 bytes from porting 05AB1E
2
votes
ASCII art uncompression from a base-n number
Vyxal, 1 byte
τ
Try it Online!
05AB1E, 3 bytes
ÅвJ
Try it online!
2
votes
Draw an ASCII-art rainbow
Vyxal j, 18 bytes
\_2꘍f*` /|`vøṀ$¨vj
Try it online or verify all test cases.
How?
...
2
votes
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Vyxal j, 2 bytes
¦∞
Try it Online!
2
votes
Ascii Fibonacci spiral
Vyxal, 11 bytes
×3ʀd⁰ɽ∆f›ø∧
Try it Online!
-1 byte thanks to emanresu A
2
votes
Collect data on mushroom forests
05AB1E, 21 bytes
'=QεγεƶÐÅsQ*}˜}øOιн;î
Port of @UnrelatedString's Jelly answer, since it's shorter than any monstrosity I was attempting..
Input as a (right-padded)...
2
votes
1
vote
Draw an ASCII-art rainbow
Ly, 42 31 bytes
"| |\ / - "nsp[ol[f:of,]ppo9`o]
Try it online!
This version is shorter using a completely different algorithm. It pushes 3 characters ...
1
vote
Draw an ASCII-art rainbow
Python 3, 58 55 bytes
lambda n:f" {'_'*n if n else''}\n/{' '*n}\\\n|{' '*n}|"
Try it online!
Simple f-string
1
vote
Draw an ASCII-art rainbow
JavaScript, 59 bytes
f=n=>n?f(n-1).replace(/.\n/g,c=>' _'[c<1|0]+c):`
/\\
||
`
Try it online!
A recursive function. Uses how JS coerces whitespace to 0,...
1
vote
1
vote
Display a clock face
Vyxal Cm, 32 bytes
6d6(12n-»§⟩»niǎnS꘍J₁SṘmni⌊¶*)_6W
Try it Online!
Bubblegum, 52 bytes
...
1
vote
1
vote
1
vote
Make me a square!
K (ngn/k), 34 bytes
{`0:x,x,x,"\n",x," ",x,"\n",x,x,x}
Try it online!
The straightforward (although long) answer.
1
vote
1
vote
1
vote
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ascii-art × 1169code-golf × 1120
string × 207
kolmogorov-complexity × 168
grid × 48
random × 38
animation × 37
math × 36
number × 34
geometry × 33
graphical-output × 29
fractal × 26
code-challenge × 23
popularity-contest × 23
hexagonal-grid × 22
decision-problem × 21
parsing × 17
printable-ascii × 15
date × 14
path-finding × 14
integer × 13
tiling × 13
arithmetic × 12
alphabet × 12
maze × 12