Poker hand analyser: Difference between revisions
m
→{{header|Phix}}: no_empty now defaults to true
mNo edit summary |
m (→{{header|Phix}}: no_empty now defaults to true) |
||
Line 2,635:
<lang Phix>function poker(string hand)
hand = substitute(hand,"10","t")
sequence cards = split(hand
if length(cards)!=5 then return "invalid hand" end if
sequence ranks = repeat(0,13),
|