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

Players with a negative balance can blind bet.. #11

Open
G-h-o-s-t opened this issue Jun 2, 2015 · 4 comments
Open

Players with a negative balance can blind bet.. #11

G-h-o-s-t opened this issue Jun 2, 2015 · 4 comments

Comments

@G-h-o-s-t
Copy link

Once the game is over and someone lost everything to zero, they still at the table.

And the player with zero balance can press ready(!), the game begins, zero balance will turn into a negative (because of the blind bets).
Can server throw players with a negative or zero balance from the table, after the game ends?

@G-h-o-s-t
Copy link
Author

Also this situation throw the error (then no cards are dealt) in Holdem poker

main.js:1003
Holdem.sort = function(cards) {
if(cards.length != 5) return cards; // Uncaught TypeError: Cannot read property 'length' of null
...

I'm understand that is a front-end error, but i type it just for info reason. The easest cure - add cards array check before comparing. ( if(!cards) return; )

thx.

@floatinghotpot
Copy link
Owner

@G-h-o-s-t thanks for the bug report. Will look into the first two issues.

As to Holdem.sort(), the param cards should be an array, which means a set of cards, should not be null, if no cards, just pass an empty array.

@G-h-o-s-t
Copy link
Author

Okay, got you.
Thanks for you support!

@zilveer
Copy link

zilveer commented Jul 24, 2017

@floatinghotpot did you solve this issue?

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

3 participants