Poker hand analyser: Difference between revisions

m
used more consistent indentations in the task's preamble.
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:
A poker hand is specified as a space separated list of five playing cards.
 
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).
 
: FacesSuits are: '''ah''', '''2'''(hearts), '''3d''', '''4'''(diamonds), '''5c''', '''6'''(clubs), '''7''',and '''8s''', '''9'''(spades), '''10''',or '''j''',alternatively '''q''',the unicode '''k'''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.