Skip to main content
Commonmark migration
Source Link

#Python 3, 306 299 265 253 255 252 247 244 bytes#

Python 3, 306 299 265 253 255 252 247 244 bytes

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

Edit: -3 bytes by using the string function center

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:((t+z)*b)[:-1].center(103)+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(49-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

#Python 3, 306 299 265 253 255 252 247 244 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

Edit: -3 bytes by using the string function center

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:((t+z)*b)[:-1].center(103)+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(49-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

Python 3, 306 299 265 253 255 252 247 244 bytes

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

Edit: -3 bytes by using the string function center

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:((t+z)*b)[:-1].center(103)+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(49-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

added 91 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25

#Python 3, 306 299 265 253 255 252 247247 244 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

Edit: -3 bytes by using the string function center

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n"1].center(103)+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(5249-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!Try it online!

#Python 3, 306 299 265 253 255 252 247 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(52-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

#Python 3, 306 299 265 253 255 252 247 244 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

Edit: -3 bytes by using the string function center

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:((t+z)*b)[:-1].center(103)+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(49-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

added 89 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25

#Python 3, 306 299 265 253 255 252252 247 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

def l(y,x=13,z=" "):b=min(x,91-y);o=lambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n";A;A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or ""or"".join(map(olambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(52-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!Try it online!

#Python 3, 306 299 265 253 255 252 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

def l(y,x=13,z=" "):b=min(x,91-y);o=lambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n";A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or "".join(map(o,(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(52-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

#Python 3, 306 299 265 253 255 252 247 bytes#

Quick attempt, could be optimised

Edit: -2 bytes thanks to @MrXcoder

Edit: -32 bytes as trailing spaces is not needed

Edit: -12 bytes by combining the two functions

Edit: -5 bytes thanks to @musicman523

Edit: +7 bytes to remove the shelf after the last row

Edit: -3 bytes

Edit: -5 bytes due to a lambda function only being used once in a map

def l(y,x=13,z=" "):b=min(x,91-y);A,D="  |%s|  ","|-----|";print(y<91and(l(y+x,x-1)or"".join(map(lambda t:z*(55+4*x-8*b)+((t+z)*b)[:-1]+"\n",(A%"=",A%z,A%z," /   \ ",".     .",D,"|     |",D,"|_____|")))+z*(52-4*x)+"="*(x*8+5)*(x<13))or(x>12)*":(")

Try it online!

added 45 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading
added 191 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading
added 43 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading
added 120 characters in body
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading
Source Link
Halvard Hummel
  • 3.2k
  • 1
  • 11
  • 25
Loading