NikolayIT/TexasHoldemGameEngine

Proposal on speeding hand checks a bit more

Closed this issue · 0 comments

1st - every Lambda where select and orderBy - select first - lines 112 & 140
2nd - split
if flush { straightFlush(just check for straight) or flush }
else { all the rest }

  • this way skips 4OfAKind & Full house checks: if flush available - no higher rank possible
    or..... just add some flag to skip these checks if flush available