Challenge
Display to the screen or write to stdout this exactly:
**
**
****
****
****
****
****
****
****
**********
**********
**********
Winning
This is code-golf, so the shortest submission (in bytes) wins.
Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.
Sign up to join this communityDisplay to the screen or write to stdout this exactly:
**
**
****
****
****
****
****
****
****
**********
**********
**********
This is code-golf, so the shortest submission (in bytes) wins.
Display to the screen, eh?
a=[1...9]
b=0a-4
c=[-2...0]
(0a,a) **
(0a,a-3) ****
(b,c) ****
(-b,c) ****
Pasting that in directly will fail because the asterisks are actually part of the label.
Label:
does not need to be included in the byte count, but the asterisks should be contained in their own line to indicate a so-called "file boundary", as mentioned in this meta post on scoring Desmos code. In this case, the expression box of the label would be considered a different "file" than that of the point, so you need a file boundary.
\$\endgroup\$
Nov 19 at 23:43
(0a,a)
is only labelled with **
, not ****
which is what you put in the code box.
\$\endgroup\$
Nov 19 at 23:46
c=[-2...0]
is shorter than c=[1...3]-3
by one byte.
\$\endgroup\$
Nov 19 at 23:48
main(y){for(;y<14;puts("********"+(y<=9)*6+3/++y*2))printf(" **"+(y>2)+y/10*3);}
Uncompress@"1:eJxTTMoPCm5nYGBQAAItrRgDQyMUlpYWtZhacICPBwCDVxow"
It's a bit cheeky, but it gets the job done.
for i in[[4,2]]*2+[[3,4]]*7+[[0,10]]*3:print(" "*i[0]+"*"*i[1])