Could you show us the brute-force method you use to solve this?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Can you explain your algorithm in English?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
I have played poker.
If you won't explain your algorithm, how can anyone help you program it?
Is this a java programming problem or a quest for an algorithm?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Ok. Sorry, I thought this was about how to do programming in Java, but it appears that you're looking for an algorithm.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Only idea to date:
Given Probability = nbr winning hands/total number of hands
Divide the deck into two piles depending on whether the card can change the value of any of the hands. Cards that can make a flush, straight or pair with a hand go into the useful pile, other cards go into the junk pile.
Compute the number of hands that can be dealt using the junk cards using an equation.
Deal and evaluate all hands using all the cards in the useful pile (brute force)
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656