You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the CompareHands.java doesn't calculate the winner when two hands are the same (ie: pair vs pair) and instead declares it a tie or says the player wins. Also figure out how to make it consider players that have folded and not calculate their hand when determining the winning hand.
The text was updated successfully, but these errors were encountered:
This is not as easy as it might seem at first glance. The current code will compare two hands (so for example, it will decide that a straight beats a pair). However, this gets more difficult with an arbitrary number of players. It should be a really fun problem though. I would suggest doing some research into how this is usually done. I'm sure there are a lot of good resources online to help.
Currently the CompareHands.java doesn't calculate the winner when two hands are the same (ie: pair vs pair) and instead declares it a tie or says the player wins. Also figure out how to make it consider players that have folded and not calculate their hand when determining the winning hand.
The text was updated successfully, but these errors were encountered: