Skip to main content
22 votes

Limited letter renderer: BIOPD

JavaScript (ES6), 110 bytes Expects an array of ASCII codes. ...
Arnauld's user avatar
  • 193k
14 votes

Print a meter of numbers to a specified limit

Canvas, 4 bytes R↶ * Try it online. Explanation: ...
Kevin Cruijssen's user avatar
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 ...
xnor's user avatar
  • 145k
10 votes

Draw the initial positions of Mölkky pins in ASCII art

Python 3, 123 bytes ...
dingledooper's user avatar
  • 22.7k
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, ...
Arnauld's user avatar
  • 193k
10 votes

First person to ever beat Classic Tetris

C (gcc), 476 395 308 283 153 151 bytes -130 bytes thanks to @Command Master -2 bytes thanks to @ceilingcat Applying ANSI escape codes to the ascii-art. ...
vengy's user avatar
  • 2,213
10 votes

Cellular Automata Rule 30

Google Sheets, 171 bytes ...
z..'s user avatar
  • 751
9 votes

s-n-a-k-e-a-r-o-u-n-d--->

K (ngn/k), 337 331 315 290 279 231 224 211 213 bytes ...
doug's user avatar
  • 1,370
9 votes

Find the odd one out

Python, 87 bytes import random as r,textwrap as w f=lambda t,d:w.fill("".join(r.sample(t+d*511,512)),32) Attempt This Online! Same sampling technique as @...
Nicola Sap's user avatar
  • 3,685
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 ...
xnor's user avatar
  • 145k
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 ...
hyper-neutrino's user avatar
  • 42.4k
8 votes

Find the odd one out

Google Sheets, 52 bytes =index(if(randbetween(1,512)=sequence(16,32),B1,A1)) Put the decoy in cell A1, the target in cell ...
doubleunary's user avatar
  • 1,705
8 votes

Create a cactus from words

Python, 130 bytes ...
lynn's user avatar
  • 68.8k
7 votes

Print this diamond

Uiua, 17 bytes +@!÷⊃≥+8⊞+.↧⇌.⇡17 Try it on uiua.org/pad We use ⇡17 to make a range from 0 ...
lynn's user avatar
  • 68.8k
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 ...
The Thonnu's user avatar
  • 18.1k
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 ...
Neil's user avatar
  • 172k
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 ...
corvus_192's user avatar
  • 5,532
7 votes

ASCII-art milk carton

Charcoal, 49 bytes F⁷B⁻⁹&²ι⁻⁷&⁴ιP“↗⎇≦∨⎚üUP@>⁼γa”C⁶¦⁰M⁹→P^³M←\|/C¹²¦⁰ Try it online! Link is to verbose version of code. Explanation: ...
Neil's user avatar
  • 172k
7 votes

Create a cactus from words

JavaScript (Node.js), 151 bytes Expects an array of two strings. ...
Arnauld's user avatar
  • 193k
7 votes

Create a cactus from words

R 4.3.2, 287 bytes Certainly, there's room for optimization... Edit THE final version. Bonus: the headspace region is calculated to fit exactly the height of the cactus including the branches ...
int 21h Glory to Ukraine's user avatar
7 votes

Create a cactus from words

K (ngn/k), 53 bytes Takes a list of 2 strings and returns a character matrix. {|+(|/#'x)$x,:|y}.{(""[!97!*x],/:|1 2_x),,`c$97+!26}' Try it online!
ovs's user avatar
  • 59.5k
7 votes

Cellular Automata Rule 30

Python, 100 byes l='.'*32 l+='O'+l exec("print(l);l=''.join('.O'[f'.{l}.'[i:i+3]in'OO..O.']for i in range(65));"*33)
boothby's user avatar
  • 9,856
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 ...
Arnauld's user avatar
  • 193k
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) ...
Value Ink's user avatar
  • 12.6k
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 ...
lynn's user avatar
  • 68.8k
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!
CursorCoercer's user avatar
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 ...
ToAskOrNotToAsk's user avatar
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 ...
corvus_192's user avatar
  • 5,532
6 votes

Print ASCII building

Perl 5, 42 bytes say$"x(5-$_/2),'*'x$_ for 2,2,(4)x7,(10)x3 Try it online!
Xcali's user avatar
  • 15.3k
6 votes

First person to ever beat Classic Tetris

Python, 114 112 bytes x=int("cmlzatvntfmkheiwxpk0p5iob21d1xxc29",36) c='0'*90 while x:c+=str(x%3);x//=3 while c:print(c[:10]);c=c[10:] Attempt This ...
qwr's user avatar
  • 12.1k

Only top scored, non community-wiki answers of a minimum length are eligible