Poker hand analyser: Difference between revisions
Content added Content deleted
m (added a ;Task: (bold) header, made other wording changes to the task's preamble (spelled-out some numbers).) |
m (used more consistent indentations in the task's preamble.) |
||
Line 9: | Line 9: | ||
A poker hand is specified as a space separated list of five playing cards. |
A poker hand is specified as a space separated list of five playing cards. |
||
Each input card has two characters indicating face and suit. |
Each input card has two characters indicating face and suit. For example: '''2d''' (two of diamonds). |
||
Faces are: '''a''', '''2''', '''3''', '''4''', '''5''', '''6''', '''7''', '''8''', '''9''', '''10''', '''j''', '''q''', '''k''' |
|||
For example '''2d''' (two of diamonds). |
|||
Suits are: '''h''' (hearts), '''d''' (diamonds), '''c''' (clubs), and '''s''' (spades), or alternatively the unicode card-suit characters: ♥ ♦ ♣ ♠ |
|||
: Suits are: '''h''' (hearts), '''d''' (diamonds), '''c''' (clubs), and '''s''' (spades), or alternatively the unicode card-suit characters: ♥ ♦ ♣ ♠ |
|||
Duplicate cards are illegal. |
Duplicate cards are illegal. |