1
\$\begingroup\$

I was looking at my previous challenge and thought I could make a better version, but I didn't want to modify that one, so here it is!


Challenge

Given an input n,

  • print an ASCII art cake n layers tall,
  • viewed from the side,
  • with two candles on top,
  • using box drawing characters.
  • First layer is thinner than the others.
  • Refer to the examples below.

Example output

>> cake(1)
╭─╨─╨─╮
└─────┘

>> cake(2)
  ╭─╨─╨─╮
╭─┴─────┴─╮
│         │
└─────────┘

>> cake(3)
    ╭─╨─╨─╮
  ╭─┴─────┴─╮
  │         │
╭─┴─────────┴─╮
│             │
└─────────────┘

>> cake(4)
      ╭─╨─╨─╮
    ╭─┴─────┴─╮
    │         │
  ╭─┴─────────┴─╮
  │             │
╭─┴─────────────┴─╮
│                 │
└─────────────────┘

...and so on.

Rules

  • Standard loopholes prohibited
  • Please make an attempt at a clever solution
  • Since multi-byte box drawing characters are used, solution size is measured in characters, not bytes. (Compiled/binary sizes are still measured in bytes, however.)
  • This is , so shortest answer in characters wins. However, the answer will not be selected.

Have fun!

\$\endgroup\$
7

0