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