-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add user action between hands - the user can choose whether to quit the game or sit out the next hand #413
Comments
Yes, I see no reason of not targeting it for an alpha release. Once the game ends, the logic should be:
For all of that I see the backend needs conditions added to make a conditional code there to push websocket message to the GUI of waiting for end user's action on next game play, and wait for that user's action, or timeout waiting for may be 1 minute. On timeout the game automatically ends, instead of continuing further. I still need to check on all that logic of game further, but as I move forward, I'll see what I can find, understand and change in the code. |
Yeah I'd say aim for alpha release unless it adds a massive overhead. I think having a click button labelled something along the lines of "leave table next hand" would be handy. That way as soon as the hand is over, the player is removed from the table. If somebody was to close the game window, this would also need to have the same affect. I think waiting 1 minute between hands is wayyy too long though (in the case somebody closes their window without clicking that button). The game should assume people are playing the next hand, unless that box is ticked, or the player has closed the game (this could send a message to the dealer on closure). |
Allright, from what I know of how PokerStars works, I can implement the following:
What i need from the backend:
GUI -> backend {method: 'exit_game', playerId: 1}
backend -> GUI {method: 'seats', seats: []} https://github.com/chips-blockchain/bet/blob/master/docs/method_seats.md
GUI: |
No, this condition should be checked every single hand. Each hand is effectively a 'new game', as far as Cash poker goes. 3 people could 'stand up' or leave the table, and 2 sit down, between each hand. Or any combination of people staying or leaving the table. |
so if the table needs 6 people to start playing, and one guy leaves after the first hand, everyone have to wait for a new person to join so they are 6 in total again? @NutellaLicka |
If that is what the dealer sets the table too, then yes. It gives the dealer flexibility and options. Some people do not want to play poker with less than 6 people, some don't mind. Others wouldn't want to join a hand straight away if they were the 2nd person to sit down. I personally would look at the minimum number of players and go to a table that is above that, so I can get onto the table and play straight away. But I wouldn't do that if the minimum number of players was, say, 4. |
Within this issue the following will be implemented:
|
We should give players an option to sit out the next game. Just like they do in PokerStars.
To quit the game the player can just close the game window? Or there could be a dedicated quit game button, that can take the player back to the list of tables. @NutellaLicka What would be the best way for the player to quit the game? In poker stars you just close the window, but they have the game open in an extra window so the player just closes that extra window and chooses a new action from the main window.
Also should this go in the alpha release? @NutellaLicka This could probably be more of a beta material.
The text was updated successfully, but these errors were encountered: