Structured User Story #9 - User is 'All-in'

USE CASE #9

The user bets all their remaining chips on the current hand. This move is called going 'All-in'

Preconditions

The server is running.
The user is connected to the server, along with other users.
The game has been started by one of the users.
The hands have been dealt and it is this players turn.
Regardless of what others have bet, this player can any number of chips to go 'All-in' with.

Success End Condition

All of the players remaining money is put into the pot, and any other player who wishes to bet must call with that amount, or put themselves all in.

Fail End Condition

If this goal is abandoned it could be that the user only wishes to bet a small amount of money (or any amount less than there total remaining amount). Either way, gameplay should continue normally. This version only supports one round of betting, however.

Trigger

The user clicks the All-In button.

Description The server is running (remotely).
All users, including current user, have connected to the server.
A user has started the game with the command COMMAND:STARTGAME
It is the current players turn in the hand.
User clicks All-In button to bet all their remaining chips and it is no longer their turn.