28
3
No, not the
^^vv<><>BAkind of Easter eggs, real Easter eggs that we paint.
Here is an (awfully drawn) egg.
__
/ \
/ \
| |
\____/
In easter, we paint them with patterns. Like these:
__
/--\
/----\
|----|
\____/
__
/%%\
/%%%%\
|%%%%|
\____/
__
/~~\
/~~~~\
|~~~~|
\____/
The challenge
Given a character (printable ascii) to paint the egg, print the painted egg.
Examples:
&:
__
/&&\
/&&&&\
|&&&&|
\____/
#:
__
/##\
/####\
|####|
\____/
Specs
- Trailing newlines/spaces are allowed.
8Why the downvote? If you do not like this question, downvote then leave a reason please. – Matthew Roh – 2017-04-14T14:41:36.427
2One potential reason might be that they don't think this task is clear enough or clear enough. I'd say it is clear enough, and it's not literally trivial either. That said, I'm not particularly excited either. – John Dvorak – 2017-04-14T14:43:36.477
17The challenge will be very trivial in most languages. The egg is too short to allow much originality in the golfing. In my opinion, it's an uninteresting challenge (that hasn't been sandboxed, because you seem to be boycotting the sandbox for I don't know what reasons), therefor, I downvote it. – Dada – 2017-04-14T14:53:03.710
1It's likely because this is a variation on existing challenges with nothing unique beyond the shape of the object, that being said I +1'd it because it's the first Easter themed challenge I've seen... The only non-trivial part is that
/\\is not a palindrome ._. – Magic Octopus Urn – 2017-04-14T14:53:27.620Are trailing spaces on any of the lines allowed? – Martin Ender – 2017-04-14T15:10:01.150
@MartinEnder Yes, they are allowed. – Matthew Roh – 2017-04-14T15:11:07.653
26Upvoted because simple challenges like this are great for beginners like me to ease into golf. – Shaggy – 2017-04-14T15:40:21.663
7POOF! You're an easter egg. (Sorry, couldn't resist) – George Cummins – 2017-04-14T20:16:30.193