your challenge is to draw this ASCII art:

|     |  |- - - -  |       |       - - -   
|     |  |         |       |       |   |  
|- - -|  |- - -    |       |       |   | 
|     |  |         |       |       |   | 
|     |  |- - - -  |- - -  |- - -  - - -

remember this is code golf meaning you have to answer in the least amount of bytes possible. EDIT: spacing between letters is two spaces. the only symbols used are | and -. NO underscores. i added spaces between the dashes to make it easier to see how many there are

  • \$\begingroup\$ Can you add a description of how to draw it (dimensions, spacing, characters, etc.)? The title is also very vague, and applies to any ascii-art challenge. I'd recommend using the sandbox for future challenges. \$\endgroup\$ – Redwolf Programs Mar 1 at 15:34
  • 2
    \$\begingroup\$ is there a mistake at the bottom of the E or is this on purpose to have a - instead of a ? (just for the sake of nitpicking, it actually introduces a welcomed conmplexity IMO) \$\endgroup\$ – Kaddath Mar 1 at 15:40
  • 3
    \$\begingroup\$ @Kaddath personally, I'd prefer it without the odd character on the E. At a certain point, odd quirks lead to uninteresting off-the-shelf compression based algorithms. I'd also prefer the use of ASCII - throughout. Use of non-ASCII characters excludes certain languages. \$\endgroup\$ – Level River St Mar 1 at 16:04
  • \$\begingroup\$ @LevelRiverSt totally valid points, I tend to forget ASCII only languages (and the question is called ASCII art after all) \$\endgroup\$ – Kaddath Mar 1 at 16:07
  • 2
    \$\begingroup\$ Justin, this is why you're attracting close votes, and why you should post in the sandbox first. Since your edit, this is a completely different question (a better question, but a completely different one.) You already have one answer from @Kaddath which is now invalid. You also haven't addressed my point about what whitespace is allowed. I predict this question will get closed and probably not reopened, which is sad because it could have been avoided. Please try answering a few challenges to get used to the site, and post your next one in the sandbox first for feedback. \$\endgroup\$ – Level River St Mar 1 at 18:05

05AB1E, 52 bytes

•C"¹Ò∞ʒÓŸ2ýŸ¦ÙLŒðd4Í}‡éλPÓãžãš±àýEŽª™§M₆2•… |-ÅвJ5ä»

Try it online!

•...•… |-ÅвJ5ä»  # full program
              »  # join...
           J     # joined...
         Åв      # characters in...
     … |-        # literal...
         Åв      # with indices in digits of...
•...•            # 88667318995411980279046696478254356886483104218636819581201379955454517801745112819324119476267...
         Åв      # in base length of...
     … |-        # literal...
             ä   # split into...
            5    # literal...
             ä   # equal sized pieces...
              »  # by newlines
                 # implicit output

PHP, 63 bytes

<?=gzinflate('«Q  ÒU€@&`a^®¸J4Èt

WARNING: this code contains many non-printable chars and a function that is disabled in most online code testers. It is either impossible to enter the correct code on their sites or run the function. Here is the php file I uploaded to gitHub so that you can test (I recommend using <pre><code> tags to see it as intended in a browser, because of spaces being narrower than , and new lines ignored in HTML):

Try it OFFline!

Well this is a one-time trick that is becoming recurrent, and quite boring, as all I need to do is reuse the script I made to generate the file, replace the string and run it. So this is the last time I'll use this trick, and I post it as a demonstration of why these challenges are not that much interesting IMO.

EDIT: updated the answer and the file with edited question (the string is shorter, so from 94 bytes originally to 63)


Charcoal, 54 bytes

≔…- ⁵θ↓³↗→θ↑³Mχ¹←…- ⁷↓³↗→θM²⁰→P↑²M⁴→↑²←θ‖O↓F²«←←←θP↑⁵←

Try it online! Link is to verbose version of code. Explanation:

≔…- ⁵θ

Construct the string - - - as it gets used a lot.


Draw the top half of the H.

Mχ¹←…- ⁷↓³↗→θ

Draw the top half of the E.


Draw the top half of the O.


Reflect to complete the HE O.


Draw two Ls.

Or I could just do boring string compression for 51 bytes:


Try it online! Link is to verbose version of code.

If there were no spaces in the horizontal lines, it would be only 44 bytes:


Try it online! Link is to verbose version of code.


Not the answer you're looking for? Browse other questions tagged or ask your own question.