14
It is Friday and I am tired, so let's do a quick one! Take no input, however you should output all thirteen different numbered cards in a standard deck of cards. You should output 2 through Ace (Suit agnostic).
Each card has a top that is denoted with a space
and ten _
and another space
.
The second row from the top is denoted with a /
and ten spaces
and a \
The third row is the same as all the middle-ish rows excepts the character(s) denoting the card value appear two spaces to right (if at the top) or two space to the left (if at the bottom) of the edge.
Each middle-ish row is a simple |
and ten spaces
and one more |
Finally the last line is a \
and ten _
and finally a /
If the value is multi-digit the overall width by height of the card should not change. (i.e. the 10 will not make the card's sides wider)
King Example:
__________
/ \
| K |
| |
| |
| |
| |
| |
| K |
\__________/
9 Example
__________
/ \
| 9 |
| |
| |
| |
| |
| |
| 9 |
\__________/
10 Example
__________
/ \
| 10 |
| |
| |
| |
| |
| |
| 10 |
\__________/
Output them in order from least to greatest (Aces are high!).
This is code-golf so the shortest code wins.
Have fun and have a fun weekend!
2May we have a 10 Example to see if the lower 10 is sticking the right edge or not? – Sunny Pun – 2016-10-21T19:17:21.523
@SunnyPun why of course – jacksonecac – 2016-10-21T19:18:25.347
1Should the cards be arranged vertically, horizontally, or does it matter? – DLosc – 2016-10-21T19:24:34.890
Left to right or top to bottom players choice. – jacksonecac – 2016-10-21T19:25:17.227