if (me._cards[1].pValue = 1) and (me._cards[2].pValue = 10) and (me._cards[3].pValue = 11) and (me._cards[4].pValue = 12) and (me._cards[5].pValue = 13) and ((me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit)) then
return #royalflush
else
if (me._cards[1].pValue = (me._cards[2].pValue - 1)) and (me._cards[2].pValue = (me._cards[3].pValue - 1)) and (me._cards[3].pValue = (me._cards[4].pValue - 1)) and (me._cards[4].pValue = (me._cards[5].pValue - 1)) and ((me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit)) then
return [#straightflush]
else
if ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[2].pValue = me._cards[3].pValue) and (me._cards[3].pValue = me._cards[4].pValue)) or ((me._cards[2].pValue = me._cards[3].pValue) and (me._cards[3].pValue = me._cards[4].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) then
return #fourofakind
else
if ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[3].pValue = me._cards[4].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) or ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[2].pValue = me._cards[3].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) then
return #fullhouse
else
if (me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit) then
return #flush
else
if (me._cards[1].pValue = (me._cards[2].pValue - 1)) and (me._cards[2].pValue = (me._cards[3].pValue - 1)) and (me._cards[3].pValue = (me._cards[4].pValue - 1)) and (me._cards[4].pValue = (me._cards[5].pValue - 1)) then
return #straight
else
if ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[2].pValue = me._cards[3].pValue)) or ((me._cards[2].pValue = me._cards[3].pValue) and (me._cards[3].pValue = me._cards[4].pValue)) or ((me._cards[3].pValue = me._cards[4].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) then
return #threeofakind
else
if ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[3].pValue = me._cards[4].pValue)) or ((me._cards[2].pValue = me._cards[3].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) or ((me._cards[1].pValue = me._cards[2].pValue) and (me._cards[4].pValue = me._cards[5].pValue)) then
return #twopairs
else
if (me._cards[1].pValue = me._cards[2].pValue) or (me._cards[2].pValue = me._cards[3].pValue) or (me._cards[3].pValue = me._cards[4].pValue) or (me._cards[4].pValue = me._cards[5].pValue) then
return #pair
else
if not voidp(isDealer) then
if (me._cards[1].pValue = 1) and (me._cards[5].pValue = 13) then
return #high
else
return VOID
end if
else
return #high
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end
on checkHandValue me
if (me._cards[1].pValue = 1) and (me._cards[2].pValue = 10) and (me._cards[3].pValue = 11) and (me._cards[4].pValue = 12) and (me._cards[5].pValue = 13) and ((me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit)) then
return 2000
else
if (me._cards[1].pValue = (me._cards[2].pValue - 1)) and (me._cards[2].pValue = (me._cards[3].pValue - 1)) and (me._cards[3].pValue = (me._cards[4].pValue - 1)) and (me._cards[4].pValue = (me._cards[5].pValue - 1)) and ((me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit)) then
if (me._cards[1].pSuit = me._cards[2].pSuit) and (me._cards[2].pSuit = me._cards[3].pSuit) and (me._cards[3].pSuit = me._cards[4].pSuit) and (me._cards[4].pSuit = me._cards[5].pSuit) then
if (me._cards[1].pValue = (me._cards[2].pValue - 1)) and (me._cards[2].pValue = (me._cards[3].pValue - 1)) and (me._cards[3].pValue = (me._cards[4].pValue - 1)) and (me._cards[4].pValue = (me._cards[5].pValue - 1)) then