22
votes
Limited letter renderer: BIOPD
JavaScript (ES6), 110 bytes
Expects an array of ASCII codes.
...
21
votes
Render text in a slanted ASCII-art font
JavaScript (Node.js), 418 bytes
Expects a list of strings.
...
14
votes
Compare Two Fractions With ASCII Art
Excel (ms365), 134 bytes
Credits to @JosWooley for this is essentially his answer.
Formula in E2:
...
14
votes
Print a meter of numbers to a specified limit
Canvas, 4 bytes
R↶ *
Try it online.
Explanation:
...
13
votes
Render text in a slanted ASCII-art font
Funciton, non-competitive
Big dramatic reveal! This coding challenge was actually suggested to me by a friend. I originally wrote it in C# but then decided that this might be an excuse to flex my old ...
13
votes
Print ASCII building
Python 3, 47 bytes
for n in b"":print(f"{'**'*n:^10}")
Try it online!
Yawn, bytestrings. I got close with a few ...
12
votes
Accepted
11
votes
Compare Two Fractions With ASCII Art
Python, 152 bytes
Here's the program I used to generate the testcases. I'm sure someone more skilled could golf it down more (and I'd be interested to see!).
...
10
votes
10
votes
Print ASCII building
CP-1610 machine code, 47 DECLEs1 = 58.75 bytes
1. CP-1610 instructions are encoded with 10-bit values (0x000 to 0x3FF), known as DECLEs. Although the Intellivision is also able to work on 16-bit, ...
8
votes
Voronoi-Lloyd ASCII art
Excel (ms365), 542 bytes
Using Chebyshev distance, here is an iterative example where W==10, H==1 and seeds are ...
8
votes
Compare Two Fractions With ASCII Art
05AB1E, 32 bytes
ø`©.¿D®àQ>*®÷<„x-Sδ×'|ìsIíÆø×J€Ć
Port of @blaketyro's Python answer, so make sure to upvote him/her as well!
Input as a pair of pairs ...
8
votes
"Print this diamond" gone beautifully wrong
Python 3, 80 bytes
i=8
while i+9:k=abs(i);print(f"{(' '*k).join(str((10**(9-k)//9)**2)):^41}");i-=1
Try it online!
Uses the classic arithmetic trick ...
8
votes
8
votes
Directional Run Length Decoding
Python, 120 bytes
def f(A):
G=[];X=Y=0
for c,n,(x,y)in A:
for _ in" "*n:G+=[[]];G[Y]+=[_]*(X-~len(G[Y]));G[Y][X]=c;X+=x;Y+=y
return G
Attempt This ...
7
votes
ASCII-art polygons to GeoJSON coordinates
Charcoal, 52 bytes
WS⟦ι⟧⊞υ⟦⌕θ*⁰⟧J⊕⌕θ*⁰WΦ⁴‹ ⊟KD²✳⊗κ«✳⊗⌊ι ≡KK*⊞υ⟦ⅈⅉ⟧»⎚⭆¹υ
Try it online! Link is to verbose version of code. Takes input as a list of newline-...
7
votes
"Print this diamond" gone beautifully wrong
Thunno 2, 14 bytes
9Rƒıṅ8_ṣjⱮ;ⱮØC
Try it online!
Seems like the compressed list part (¿qJŒḣ“ɲþẇɦɠ¿i) could be golfed a bit with ...
7
votes
Directional Run Length Decoding
Charcoal, 14 bytes
WS✳§ι⁰×§ι¹I✂ι²
Try it online! Link is to verbose version of code. Takes input as a list of newline-terminated triples using a leading ...
7
votes
Print ASCII building
Haskell, 81 72 60 bytes
unlines[(' '<$['1'..a])++("**"<*[a..'9'])|a<-"998888888555"]
Attempt This Online!
-9 bytes thanks to Unrelated ...
6
votes
Road-Length Encoding
K (ngn/k), 46 bytes
Created on the APL Farm with lots of input from chrispsn.
{++(,/(.x@y)#'"-="x_y#="PNP";"_")@3\466}`c$!58
Try it ...
6
votes
It's a dog! (Or is it?)
Python, 102 bytes
lambda x:any(re.match("[\*o]?[\-=]+",r)for r in x)*len(re.split(r"[\\|/]_+[\\|/]",x[-1]))==5
import re
Attempt This Online!
...
6
votes
Compare Two Fractions With ASCII Art
Vyxal j, 31 29 27 bytes
yD∆Ŀ~cßdεȮ/‟ʁ≤‛x-i*ƛ\|j\|ø.
Try it Online! or Verify some test cases
-2 bytes thanks to lyxal :)
I'm ...
6
votes
Draw the initial positions of Mölkky pins in ASCII art
JavaScript (ES6), 145 bytes
NB: Although I suggested the ASCII art in the sandbox, I didn't make any attempt to compress it until now. I would otherwise have waited before posting this answer.
-1 ...
6
votes
"Print this diamond" gone beautifully wrong
Ruby, 71 69 bytes
Function outputting an array of lines. A synthesis of my old answer with Level River St's answer as per their suggestions.
-2 bytes by switching to Ruby 2.7+ (TIO is on 2.5.5)
...
6
votes
"Print this diamond" gone beautifully wrong
Vyxal, 12 bytes
9ƛɾ9n-Ij;∞øṗ
Try it Online!
Uses the strangely specific øṗ (Flip Brackets Vertical Palindromise, Center, Join ...
6
votes
s-n-a-k-e-a-r-o-u-n-d--->
Pyth, 78 bytes
ju&K>*hhHH+z>s.i_Psm*Rd"-|"Qs@L_B".'"tQlz.e++b?%klGd\-@K+Hk+j\-<KH__MGStQ]@"<>
Try it online!
6
votes
Convert numbers to dice patterns
Python 3 (194 199 210 bytes) -16 (- 5 thanks to Kevin)
My First golf!
Returns a int, array, where len(arr) == side ** 2
...
6
votes
Befunge Comment Outline Creator
Python, 93 89 85 79 74 73 bytes
lambda w,h:';'*(w|1)+(';\n;'+' '*w)*h+';\n'+h%2*' '+';'*(w+~h%2+~(w^h)%2)
Attempt This Online!
-7 bytes thanks to Arnauld and ...
6
votes
Print ASCII building
Perl 5, 42 bytes
say$"x(5-$_/2),'*'x$_ for 2,2,(4)x7,(10)x3
Try it online!
5
votes
Random point inside boundary
MATL, 19 18 17 15 bytes
36yy>t0ZI-flZr(
2 bytes saved thanks to @LuisMendo
Input is provided as a 2D character array and the random point is replaced by ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ascii-art × 1201code-golf × 1152
string × 211
kolmogorov-complexity × 174
grid × 48
random × 39
math × 38
animation × 38
number × 35
geometry × 35
graphical-output × 33
fractal × 28
code-challenge × 24
decision-problem × 24
popularity-contest × 24
hexagonal-grid × 23
parsing × 17
date × 15
printable-ascii × 15
path-finding × 14
arithmetic × 13
integer × 13
tiling × 13
maze × 13
matrix × 12