ucsb-cs56-projects / cs56-games-poker

-
MIT License
2 stars 11 forks source link

Refactor CompareHands.java #83

Open hseong42 opened 6 years ago

hseong42 commented 6 years ago

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.

Sierrasch commented 6 years ago

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.

Sierrasch commented 6 years ago

W18 OK (200 pts)