Goal: To increase player engagement by allowing them to manage a bankroll and customize how much they want to bet each hand
Acceptance Criteria
With each hand a player is now required to make a bet of exactly $10
A player's bet is displayed directly just below the 'Total' text and the action buttons. It should display 'Bet: 10'. The 'Bet:' portion of that should be bold.
There is some flexibility on exact location of this. Make sure to include screenshots of this in your pull request so we can review and finalize on exact location.
At the start of each game session, a player's bankroll starts at $100
A player can see their current bankroll amount listed at the bottom-right of the screen. It should state 'Bankroll: $100' to start.
There is some flexibility on exact location of this. Make sure to include screenshots of this in your pull request so we can review and finalize on exact location.
Style is up to you but it should not just be basic text. Style it to grab attention!
At the start of each game (after the 'New Game' button is clicked) the following steps should occur:
A player's bankroll should have $10 subtracted from it
If a player does not have at least $10 in their bankroll, then a new game does not get started
For now, a player is forced to refresh the page to begin the game again
The current bet should be displayed next to the player's hand of cards. For now this will always be $10
A new hand is dealt to the player and the game begins as current behavior
New Behavior for Split and Double Down Actions
Split:
To be able to split a user also must now have at least the original bet amount (for now $10) in their bankroll. If not the button remains disabled
For each new hand that is opened, the bet amount on that hand (again, for now is $10) will be displayed next to the hand just like in the original hand of cards
Double Down:
To be able to double down a user also must now have at least the original bet amount (for now $10) in their bankroll. If not the button remains disabled
After hands end, for each hand the player wins, add the bet amount to their bankroll.
Out Of Scope
Storing bankroll beyond current browser session. If the user refreshes the page or opens the game in a new tab, the expectation is that this is a 'fresh start' and their bankroll again starts at $100.
Allowing user to customize how much they want to bet each hand. It is hardcoded to $10 to start. Followup feature to add buttons to modify that per hand. Given this feature will follow, avoid hardcoding 10 into codebase for bet amount. Parameterize it
Goal: To increase player engagement by allowing them to manage a bankroll and customize how much they want to bet each hand
Acceptance Criteria
Out Of Scope