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

Introduce move validations #6

Open
kanevk opened this issue Oct 14, 2020 · 0 comments
Open

Introduce move validations #6

kanevk opened this issue Oct 14, 2020 · 0 comments
Labels
story-point:2 Story point with effort 2

Comments

@kanevk
Copy link
Owner

kanevk commented Oct 14, 2020

Introduce the following move validations:

  • only the a user with id == state.current_player_id can make a move
  • a player cannot bet more money than the money of the player with lowest balance
  • a player cannot call when there is not bet
  • a player cannot check when there is a betted amount over the player's money_in_pot

All such validations have to return error: Invalid move. The exception will be left unhandled in the frontend.

@kanevk kanevk added the story-point:2 Story point with effort 2 label Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story-point:2 Story point with effort 2
Projects
None yet
Development

No branches or pull requests

1 participant