Poker hand analyser: Difference between revisions

Content deleted Content added
m →‎{{header|Lua}}: slightly more efficient
Line 657:
local n3, n2 = twoTypes(valCount)
if n3 == 1 and n2 == 1 then return "full-house" end
if isFlush(hand)fl then return "flush" end
if straight(hand)st then return "straight" end
if highCount == 3 then return "three-of-a-kind" end
if n3 == 0 and n2 == 2 then return "two-pair" end