There are problems in you checking functions. For instance, you have to reset the
rankCount
array before every call to
rankHist
method (otherwise you would accumulate ranks).
Then there are specific issues, for instance:
Quote:
if (rankCount[i]>0 || rankCount[i+1]>0 || rankCount[i+2]>0 || rankCount[i+3]>0 || rankCount[i+4]>0)
is not a good test for a straight (you have to use
AND
instead of
OR
).
Many of your
is...
methods are flawed, you need to double-check all of them.