Anonymous user
Poker hand analyser: Difference between revisions
Added extract credit examples use 'joker' not 'j' (thanks Gerard)
m (→{{header|Tcl}}: wrapping) |
(Added extract credit examples use 'joker' not 'j' (thanks Gerard)) |
||
Line 22:
high-card
invalid
For extra credit:▼
# use the playing card characters introduced with Unicode 6.0 (U+1F0A1 - U+1F0DE).▼
# allow two jokers▼
::* use the symbol '''j'''▼
::* duplicates would be allowed (for jokers only)▼
::* five-of-a-kind would then be the highest hand▼
Examples:
Line 43 ⟶ 36:
The programs output for the above examples should be displayed here on this page.
▲For extra credit:
▲# use the playing card characters introduced with Unicode 6.0 (U+1F0A1 - U+1F0DE).
▲# allow two jokers
▲::* duplicates would be allowed (for jokers only)
▲::* five-of-a-kind would then be the highest hand
Extra Credit Examples:
joker 2♦ 2♠ k♠ q♦: three-of-a-kind
joker 5♥ 7♦ 8♠ 9♦: straight
joker 2♦ 3♠ 4♠ 5♠: straight
joker 3♥ 2♦ 3♠ 3♦: four-of-a-kind
joker 7♥ 2♦ 3♠ 3♦: three-of-a-kind
joker 7♥ 7♦ 7♠ 7♣: five-of-a-kind
joker j♥ q♥ k♥ A♥: straight-flush
joker 4♣ k♣ 5♦ 10♠: one-pair
joker k♣ 7♣ 6♣ 4♣: flush
joker Q♦ K♠ A♠ 10♠: straight
=={{header|Perl 6}}==
|