22 votes

Limited letter renderer: BIOPD

JavaScript (ES6), 110 bytes Expects an array of ASCII codes. ...
Arnauld's user avatar
  • 189k
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
  • 144k
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
  • 189k
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
  • 4,907
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
  • 166k
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
  • 13.4k
5 votes

Print ASCII building

Zsh, 65 bytes repeat 2 <<<' **' repeat 7 <<<' ****' repeat 3 <<<********** Try it online! It's pretty basic, clever tricks like ...
roblogic's user avatar
  • 2,734
5 votes

Print ASCII building

///, 60 54 51 48 47 46 bytes /a/**//s/ a//w/ aaaaa//b/ sa/ s sbbbbbbbwww Try it online! -1 byte thanks to @Philippos
Fmbalbuena's user avatar
  • 3,207
5 votes

Print ASCII building

sed, 45 bytes Quite straight forward, with some optimisations: starting with 3 trailing spaces, which can later be turned into * of course using the ...
Philippos's user avatar
  • 1,911
5 votes

ASCII-art milk carton

Python, 133 bytes ...
Albert.Lang's user avatar
  • 2,329
5 votes

ASCII-art milk carton

Vim, 100 99 97 bytes ...
Fmbalbuena's user avatar
  • 3,207
4 votes

Print ASCII building

Japt -R, 17 bytes #p#Þ#Þ555ì Ëç*²Ãû Test it ...
Shaggy's user avatar
  • 41.6k
4 votes

Print ASCII building

Charcoal, 14 bytes ↑E333ac×*⍘ιφ‖C Try it online! Link is to verbose version of code. Explanation: ↑E333ac×*⍘ιφ Output the ...
Neil's user avatar
  • 166k
4 votes

Print ASCII building

Vyxal, 97 bitsv2, 12.125 bytes »ƛ⁼c»yøḊ×v*øm Try it Online! Bitstring: ...
math scat's user avatar
  • 8,543
4 votes

Print ASCII building

Python 3.11 (69 67 bytes nice) print(''.join(map(lambda a,c:f"{'*'*a:^10}\n"*c,(2,4,10),(2,7,3)))) removed parentheses around fstring thanks to @...
lame-lexem's user avatar
4 votes

Print ASCII building

JavaScript (V8), 59 bytes -5 thanks to @l4m2 for(n of"443333333000")print("".padEnd(n).padEnd(10-n,"*")) Try it online!
Arnauld's user avatar
  • 189k
4 votes

Print ASCII building

6510-Assembler for C64, 42 bytes ...
TGS's user avatar
  • 51
4 votes

Print ASCII building

MathGolf, 13 bytes 2_4··♂∙]⌂*♂Ωn Try it online. Explanation: ...
Kevin Cruijssen's user avatar
4 votes

Limited letter renderer: BIOPD

Charcoal, 41 39 36 35 33 bytes ↑ES⟦⪪§⪪”{∨'N4T≕⊞|"³üUr⁸mI”²⁴⊖Σ℅ι⁵ Try it online! Link is to verbose version of code. Explanation: Mainly clever compression of ...
Neil's user avatar
  • 166k
4 votes

Limited letter renderer: BIOPD

05AB1E, 37 bytes •1b§…£U(γ°xāxK²•„# Åв5ô5ôIÇH<è€øJøð«» Try it online. Just uses # and spaces like the challenge description, ...
Kevin Cruijssen's user avatar
4 votes

Limited letter renderer: BIOPD

Jelly, 34 bytes OD§ị“¡x%ẸȥpFẠẊẓ~ọØ¢’Bs5$⁺¤jØ1z1a⁶Y Try it online! A full program taking a string argument and printing the desired output, using 0 and space to ...
Nick Kennedy's user avatar
  • 19.1k
4 votes

ASCII-art milk carton

Vyxal 3, 65 bytes 81ᶴ|+y81ᶴ -y3YJṅ"ᶜgṢṆĊ“"|- \/"y⁻'-4«+JD2ΘṅWfT“" \ / \_/ "½ddJ” Try it Online! Explanation: ...
math scat's user avatar
  • 8,543
3 votes

Print ASCII building

C# (.NET 4.7.2), 92 90 87 88 bytes foreach(var x in "443333333000")Console.WriteLine("".PadRight(x-48).PadRight(58-x,'*')); Edit: @corvus_192 ...
lost_in_a_musical_note's user avatar
3 votes

Print ASCII building

APL+WIN, 52 33, 31 bytes 19 bytes saved thanks to Jonah. 2 bytes more by switching from index origin 1 to 0 '* '[2 7 3⌿⊃(⊂10⍴2)⊤¨975 903 0] Try it online! Thanks ...
Graham's user avatar
  • 5,496
3 votes

Print ASCII building

Scratch, 134 bytes NOTE: This code assumes that x is already displayed. To see the full *STDOUT* as it is, you should drag the list to the full screen. Direct ...
UndoneStudios's user avatar
3 votes

Print ASCII building

Commodore BASIC V2 or compatible interpreter (Most notably the Commodore C64 or C128) - non-competing/just for fun - 106 tokenised BASIC bytes ...
Shaun Bebbington's user avatar
3 votes

Print ASCII building

brainfuck, 107 bytes ...
matteo_c's user avatar
  • 5,833
3 votes

Print ASCII building

PowerShell, 64 bytes (Thanks Julian!) 4,4,(,3*7),0,0,0|%{$_}|%{""|% *ht($_-'0')|% *ht(10-($_-'0'))'*'} Try it online! # PowerShell, 85 bytes ...
I.T Delinquent's user avatar
3 votes

Print ASCII building

ARBLE, 47 bytes explode"112222222555"|rep(" ",5-x)..rep("**",x) Relatively self explanatory, explodes the string ...
ATaco's user avatar
  • 10.7k
2 votes

Print ASCII building

RProgN 2, 22 bytes 00079){3+`**}rT{.]i.}; Explanation ...
ATaco's user avatar
  • 10.7k

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