22
votes
Limited letter renderer: BIOPD
JavaScript (ES6), 110 bytes
Expects an array of ASCII codes.
...
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 ...
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, ...
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 ...
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:
...
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
Print ASCII building
Zsh, 65 bytes
repeat 2 <<<' **'
repeat 7 <<<' ****'
repeat 3 <<<**********
Try it online!
It's pretty basic, clever tricks like ...
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
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 ...
5
votes
5
votes
4
votes
4
votes
Print ASCII building
Charcoal, 14 bytes
↑E333ac×*⍘ιφ‖C
Try it online! Link is to verbose version of code. Explanation:
↑E333ac×*⍘ιφ
Output the ...
4
votes
Print ASCII building
Vyxal, 97 bitsv2, 12.125 bytes
»ƛ⁼c»yøḊ×v*øm
Try it Online!
Bitstring:
...
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 @...
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!
4
votes
4
votes
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 ...
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, ...
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 ...
4
votes
ASCII-art milk carton
Vyxal 3, 65 bytes
81ᶴ|+y81ᶴ -y3YJṅ"ᶜgṢṆĊ“"|- \/"y⁻'-4«+JD2ΘṅWfT“" \ / \_/ "½ddJ”
Try it Online!
Explanation:
...
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 ...
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 ...
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 ...
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
...
3
votes
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
...
3
votes
Print ASCII building
ARBLE, 47 bytes
explode"112222222555"|rep(" ",5-x)..rep("**",x)
Relatively self explanatory, explodes the string ...
2
votes
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ascii-art × 1202code-golf × 1153
string × 211
kolmogorov-complexity × 175
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