![]() JQK: mark at topleft and rightbottom, inner frame and 3 kind of rows inside, always the same structure.The lower right Joker label hasn't changed. Update: The lower right label on standard cards has been reversed so the value is in the corner.There should be no trailing spaces besides (optionally) the two that make up the right corners of the last card.There should be no output if the input is the empty string. ![]() There may be more than 54 cards in the input string and there may be duplicates of any card.The submission with the shortest number of characters wins.īonus: Subtract 30 from your character count if you use the black Unicode suit symbols ♣ ♦ ♥ ♠ instead of C D H S in your output. You can take the input from stdin or write a function that takes a string. Your program needs to print the corresponding ASCII playing cards to stdout, replacing X with the appropriate suit symbol.įor example, the output for B AS KH 10C R JD would be. So the string B AS KH 10C R JD denotes a face down card, followed by an ace of spades, followed by a king of hearts, followed by a ten of clubs, followed by a Joker, followed by a jack of diamonds. A single B for the back side (a face down card).A 2 3 4 5 6 7 8 9 10 J Q K followed by one of C D H S (for clubs, diamonds, hearts, and spades) for the 52 standard cards. ![]() Write a program that takes in a string denoting a space separated sequence of cards using. Consider these 15 ASCII playing card patterns (ace through Joker, and the back side), where X is a placeholder for the suit symbol: (they look better with less line spacing).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |