Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CompareHands.java #83

Open
hseong42 opened this issue Mar 16, 2018 · 2 comments
Open

Refactor CompareHands.java #83

hseong42 opened this issue Mar 16, 2018 · 2 comments

Comments

@hseong42
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

W18 OK (200 pts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants