12
1
We all love horoscopes, don't we? But I have a serious problem in this Horoscope App installed on my Smart Phone that it only displays the icon of the Zodiac Sign for each day's horoscope. Now, I do remember my horoscope, but its hard to remember others' whose horoscope I am interested in.
Challenge
So here is your challenge for an another addition to the ASCII Art of the Day series. Given a date and month input, output the corresponding Zodiac sign in ASCII format as shown below. Each Zodiac Sign is followed after the name and date range (DD MM
format) for the zodiac sign.
Aries - 21 03 - 20 04
.-. .-.
(_ \ / _)
|
|
Taurus - 21 04 - 20 05
. .
'.___.'
.' '.
: :
: :
'.___.'
Gemini - 21 05 - 20 06
._____.
| |
| |
_|_|_
' '
Cancer - 21 06 - 20 07
.--.
/ _'.
(_) ( )
'. /
'--'
Leo - 21 07 - 20 08
.--.
( )
(_) /
(_.
Virgo - 21 08 - 20 09
_
' ':--.--.
| | |_
| | | )
| | |/
(J
Libra - 21 09 - 20 10
__
___.' '.___
____________
Scorpio - 21 10 - 20 11
_
' ':--.--.
| | |
| | |
| | | ...
'---':
Sagittarius - 21 11 - 20 12
...
.':
.'
'..'
.''.
Capricorn - 21 12 - 20 01
_
\ /_)
\ /'.
\ / :
\/ __.'
Aquarius - 21 01 - 20 02
.-"-._.-"-._.-
.-"-._.-"-._.-
Pisces - 21 02 - 20 03
'-. .-'
: :
--:--:--
: :
.-' '-.
Input
- You would be provided two integers corresponding to the date of month and month of year (in that order) of the birthday.
- The date and month will be
1
indexed like in normal calendars. - You can take input form STDIN/ARGV/function arguments or the closest equivalent
Output
- Based on what date range the input date falls in, output to STDOUT, the corresponding Zodiac Sign.
- You can have upto 4 trailing spaces in each line but no leading spaces that are not part of the output.
- You can either write a full program or a named function.
This is code-golf so the shortest code in bytes wins!
Leaderboard
The first post of the series generates a leaderboard.
To make sure that your answers show up, please start every answer with a headline, using the following Markdown template:
# Language Name, N bytes
where N
is the size of your submission. If you improve your score, you can keep old scores in the headline, by striking them through. For instance:
# Ruby, <s>104</s> <s>101</s> 96 bytes
1
Related: http://codegolf.stackexchange.com/q/35036/29750
– NinjaBearMonkey – 2015-06-01T14:41:10.030@NinjaBearMonkey I know about it, but that one is more detailed and emphasized on date parsing – Optimizer – 2015-06-01T15:20:05.967
I know, I would definitely not consider it a duplicate, but I just thought I would mention it. – NinjaBearMonkey – 2015-06-01T15:23:16.987
Are the trailing spaces on the last lines of Taurus and Pisces intentional? – Siguza – 2015-06-01T16:43:24.783
@Siguza you can anyways have upto 4 trailing spaces. So it does not matter :) – Optimizer – 2015-06-01T16:46:07.103
That means I can have less trailing spaces than the example as well, I assume then. – Siguza – 2015-06-01T17:09:32.870
@Siguza Yes, I updated anyways. – Optimizer – 2015-06-01T17:31:56.243
Are the simplified date ranges intentional? – Dennis – 2015-06-01T18:35:27.520
@Dennis Yes. I wanted this to be more of ASCII art than Date parsing and partitioning. – Optimizer – 2015-06-01T19:45:17.717