Take the 2-minute tour ×  What would be the best way to compare
two (and only two) players hands in Java using the best
combination for 5 cards out of 7 cards (texas hold'em)?  If each
card is assigned a value or enum then is there an alogirthm that
can be used to decide who has the strongest hand?  I imagine you
could either do an integer comparison to see who has the highest
value hand or use some form of lookup table.  Having a look
around there is a hand evaluator called SpecialKPokerEval:
http://code.google.com/p/specialkpokereval/  Would this be
suitable and painless to implement into an existing project or
should I look at doing something from scratch?   How do the hand
evaluators that use integer values work?  How does a lookup
table work - does each possible hand have a value assigned to
it?  share|improve this question  closed as not a real question
by woodchips, Andrew, Andrew Aylett, Jaguar, P.T. Mar 7 '13 at
16:53   We're here to provide help with specific problems.
Unless you define best this qu