Jpiccoli1691 / 305FitnessCasino

Fitness Casino.
0 stars 0 forks source link

User Story 11: Plinko #100

Open Mcpmatt opened 2 weeks ago

Mcpmatt commented 2 weeks ago

User Story

As a Step Bet app user, I want to play a game of Plinko using my earned tokens so that I can place bets and potentially win or lose tokens based on where the Plinko ball lands.

Acceptance Criteria

Ability to Place Bets:

Users can use their player-owned tokens to place bets before starting each Plinko game round. The bet amount is adjustable within a set range, displaying the user’s current token balance before each game.

Game Mechanics and Interactivity:

The Plinko game follows traditional rules: the user drops a ball, and it bounces through a grid of pegs, landing in a slot with a prize multiplier or token amount. The outcome (win/loss amount) is calculated based on the slot the ball lands in and the user’s bet amount.

Winning and Losing Conditions:

If the ball lands in a winning slot, the user wins tokens based on the prize multiplier of that slot and their initial bet. If the ball lands in a losing or low-value slot, the user’s bet may be lost, or they win only a small amount of tokens. In case of a tie or low payout slot, a partial amount of the bet may be returned to the user.

Token Updates Based on Game Outcome:

When a user wins, their token balance is updated to reflect the amount won. If the user loses, their token balance decreases by the bet amount. The updated token balance is displayed in real time at the end of each round.

Game Flow and Replay Option:

At the end of each game, users are presented with the option to play another round or return to the main menu. The user’s token balance is recalculated and displayed at the beginning of each new game. Error Handling and Notifications:

If a user attempts to place a bet exceeding their available token balance, an error message is displayed, preventing the game from starting. The user receives on-screen notifications indicating whether they have won or lost at the end of each round.