25
5
Do you recognize the PPCG logo? it looks like this, when you do an ascii art of it.
+---+
|PCG|
+---+
v
Now, In this Code Golf, You will make a code, that makes logos for other sites, similar to the PPCG logo.
What You should do
The "Shortened" string will be the string, with all upper case letters and numbers in the input string.(Which would be PPCG when the input string is Programming Puzzles & Code Golf)
The "Box" (
+---+
| |
+---+
v
) should fit the Shortened string perfectly.(No bigger or smaller)
Also the v part should be exactly 1 down and 1 left to the down right +.
Then output the box which has the shortened string in it.
Example
Stack Overflow:
+--+
|SO|
+--+
v
Area 51:
+---+
|A51|
+---+
v
Rules
You may assume that the input contains at least one digit or upper case letter.
Standard code-golf rules apply.

Very closely related. Also related. – Martin Ender – 9 years ago
@MartinEnder Yes, Very closely related, but not duplicate. – None – 9 years ago
Also, This is Highly inspired by PPCG itself. – None – 9 years ago
Can you clarify what the text inside should be? For example, what if the name of the site was
99 bottles of beer. Would that be99BOB? Does the box get bigger to compensate for that? Is there a maximum box size, or site name size? What kind of characters might appear in the site title? – James – 9 years ago1@MatthewRoh The purpose of the links is so that the challenges show up in the sidebar, it's not a dupe vote. That said, I personally think removing the unwanted characters and also printing the
^doesn't add much compared to the second challenge I linked, but I won't cast a dupe hammer on that but let the communitz decide whether they consider it a dupe or not. – Martin Ender – 9 years agoUnlimited Box and Site name size. Also, if it was
99 bottles of beer, It would be99. – None – 9 years ago@MartinEnder The related ones you linked have a whitespace front and behind the string. mine don't. – None – 9 years ago
@MatthewRoh The actually seems like the most minor difference which isn't going to require any substantial changes to any of the existing solutions. The best case for this challenge is the acronymisation and the
v. – Martin Ender – 9 years agoAlso related – Peter Taylor – 9 years ago
Why does
99 bottles of beerbecome99and not99BOB? Is everything after a number excluded? – Adnan – 9 years agoBecause It is numbers and uppercase, not numbers and first character. – None – 9 years ago
4If it was
99 Bottles Of Beer, it would be99BOB. – None – 9 years agoOh okay, I missed that part :p. – Adnan – 9 years ago
@MatthewRoh That would be a useful test case to add. – James – 9 years ago
What about uppercase letters inside the string? i.e. would
99 bOttles Of Beerturn into99OOB? – charredgrass – 9 years agoYes. Every uppercase letters. – None – 9 years ago
THERE IS NO BF ANSWER SO I AM GIVING AWAY TO MY FAVORITE – None – 9 years ago
NOOOOO @MattherRoh, I have been working on it :( I am so close. I even created an assember to convert "readable" code to BF :((( – Rohan Jhunjhunwala – 9 years ago
@Rohan :O Im really impressed – None – 9 years ago
@MatthewRoh if I manage to get close I'lll still post it – Rohan Jhunjhunwala – 9 years ago
1@MatthewRoh its still buggy, let me see if i can get a bf answer after all – Rohan Jhunjhunwala – 9 years ago
@MatthewRoh heres what I have so far. https://sange.fi/esoteric/brainfuck/impl/interp/i.html
– Rohan Jhunjhunwala – 9 years agoJust cant figure out how to stirip uppercase characters in brainf*** – Rohan Jhunjhunwala – 9 years ago
@RohanJhunjhunwala Check all uppercase. That would be simple I think. – None – 9 years ago
@MattheyRoh yeah I think I may have an interesting solution – Rohan Jhunjhunwala – 9 years ago
@Matthew I can just check if it is less than 96 :D – Rohan Jhunjhunwala – 9 years ago
related – Taylor Scott – 8 years ago