Jump to content

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,no_empty:=1)
if length(cards)!=5 then return "invalid hand" end if
sequence ranks = repeat(0,13),
7,805

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.